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