MS 2753 then FR 572 at Madrid
Cairo → Madrid → Porto
Timetable, Madrid time
12:25MS 2753 from Cairo at the gate
09:20FR 572 to Porto leaves the gate
20 h 55 apart on the timetable, overnight
FR 572 leaves 20 h 55 after MS 2753 arrives on the timetable: more than half a day, so not a connection we count.