3O 391 then UX 1143 at Madrid
Tangier → Madrid → Porto
Timetable, Madrid time
20:003O 391 from Tangier at the gate
15:00UX 1143 to Porto leaves the gatealso KU 6049
19 h apart on the timetable, overnight
UX 1143 leaves 19 h after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.