U2 2047 then FR 3876 at Madrid
Manchester → Madrid → Tangier
Timetable, Madrid time
20:35U2 2047 from Manchester at the gate
19:15FR 3876 to Tangier leaves the gate
22 h 40 apart on the timetable, overnight
FR 3876 leaves 22 h 40 after U2 2047 arrives on the timetable: more than half a day, so not a connection we count.