MS 791 then FR 5316 at Fiumicino
Cairo → Rome → Madrid
Timetable, Rome time
12:30MS 791 from Cairo at the gate
10:20FR 5316 to Madrid leaves the gate
21 h 50 apart on the timetable, overnight
FR 5316 leaves 21 h 50 after MS 791 arrives on the timetable: more than half a day, so not a connection we count.