A3 4035 then SM 652 at Athens
Madrid → Athens → Cairo
Timetable, Athens time
17:30A3 4035 from Madrid at the gate
11:55SM 652 to Cairo leaves the gate
18 h 25 apart on the timetable, overnight
SM 652 leaves 18 h 25 after A3 4035 arrives on the timetable: more than half a day, so not a connection we count.