SM 2817 then FR 2437 at Fiumicino
Cairo → Rome → Madrid
Timetable, Rome time
14:00SM 2817 from Cairo at the gate
06:25FR 2437 to Madrid leaves the gate
16 h 25 apart on the timetable, overnight
FR 2437 leaves 16 h 25 after SM 2817 arrives on the timetable: more than half a day, so not a connection we count.