FR 5322 then MS 754 at Madrid
Milan → Madrid → Cairo
Timetable, Madrid time
19:45FR 5322 from Milan at the gate
14:50MS 754 to Cairo leaves the gate
19 h 05 apart on the timetable, overnight
MS 754 leaves 19 h 05 after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.