AA 740 then FR 3876 at Madrid
Philadelphia → Madrid → Tangier
Timetable, Madrid time
08:55AA 740 from Philadelphia at the gatealso BA 1605, AY 3812, IB 4674
06:15FR 3876 to Tangier leaves the gate
21 h 20 apart on the timetable, overnight
FR 3876 leaves 21 h 20 after AA 740 arrives on the timetable: more than half a day, so not a connection we count.