FR 6792 then IB 549 at Madrid
Marrakesh → Madrid → Porto
Timetable, Madrid time
22:05FR 6792 from Marrakesh at the gate
19:40IB 549 to Porto leaves the gate
21 h 35 apart on the timetable, overnight
IB 549 leaves 21 h 35 after FR 6792 arrives on the timetable: more than half a day, so not a connection we count.