UX 1140 then FR 6608 at Madrid
Porto → Madrid → Rabat
Timetable, Madrid time
18:15UX 1140 from Porto at the gate
10:10FR 6608 to Rabat leaves the gate
15 h 55 apart on the timetable, overnight
FR 6608 leaves 15 h 55 after UX 1140 arrives on the timetable: more than half a day, so not a connection we count.