NP 6631 then IB 1401 at Madrid
Cairo → Madrid → Valencia
Timetable, Madrid time
13:00NP 6631 from Cairo at the gate
11:30IB 1401 to Valencia leaves the gate
22 h 30 apart on the timetable, overnight
IB 1401 leaves 22 h 30 after NP 6631 arrives on the timetable: more than half a day, so not a connection we count.