FR 6792 then LA 1647 at Madrid
Marrakesh → Madrid → Porto
Timetable, Madrid time
22:05FR 6792 from Marrakesh at the gate
19:40LA 1647 to Porto leaves the gatealso CX 1889, VY 5310, AT 5484, QR 6583
21 h 35 apart on the timetable, overnight
LA 1647 leaves 21 h 35 after FR 6792 arrives on the timetable: more than half a day, so not a connection we count.