UX 1140 then FR 3876 at Madrid
Porto → Madrid → Tangier
Timetable, Madrid time
18:15UX 1140 from Porto at the gatealso AM 6853, EY 7521, AD 7870
16:45FR 3876 to Tangier leaves the gate
22 h 30 apart on the timetable, overnight
FR 3876 leaves 22 h 30 after UX 1140 arrives on the timetable: more than half a day, so not a connection we count.