EC 1703 then MS 754 at Madrid
Nice → Madrid → Cairo
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
14:50MS 754 to Cairo leaves the gate
18 h 10 apart on the timetable, overnight
MS 754 leaves 18 h 10 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.