MS 2753 then IB 1401 at Madrid
Cairo → Madrid → Valencia
Timetable, Madrid time
12:25MS 2753 from Cairo at the gate
11:30IB 1401 to Valencia leaves the gate
23 h 05 apart on the timetable, overnight
IB 1401 leaves 23 h 05 after MS 2753 arrives on the timetable: more than half a day, so not a connection we count.