FR 6723 then IB 1151 at Madrid
Marrakesh → Madrid → Porto
Timetable, Madrid time
22:45FR 6723 from Marrakesh at the gate
15:40IB 1151 to Porto leaves the gate
16 h 55 apart on the timetable, overnight
IB 1151 leaves 16 h 55 after FR 6723 arrives on the timetable: more than half a day, so not a connection we count.