FR 5485 then RK 7870 at Madrid
Porto → Madrid → Marrakesh
Timetable, Madrid time
22:45FR 5485 from Porto at the gate
21:25RK 7870 to Marrakesh leaves the gate
22 h 40 apart on the timetable, overnight
RK 7870 leaves 22 h 40 after FR 5485 arrives on the timetable: more than half a day, so not a connection we count.