SM 3107 then FR 9674 at Madrid
Cairo → Madrid → Rome
Timetable, Madrid time
11:45SM 3107 from Cairo at the gate
10:25FR 9674 to Rome leaves the gate
22 h 40 apart on the timetable, overnight
FR 9674 leaves 22 h 40 after SM 3107 arrives on the timetable: more than half a day, so not a connection we count.