FR 3877 then UX 1143 at Madrid
Tangier → Madrid → Porto
Timetable, Madrid time
17:35FR 3877 from Tangier at the gate
15:00UX 1143 to Porto leaves the gatealso KU 6049
21 h 25 apart on the timetable, overnight
UX 1143 leaves 21 h 25 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.