AZ 204 then BA 398 at Heathrow
Rome → London → Cairo
Timetable, London time
15:40AZ 204 from Rome at the gate
15:25BA 398 to Cairo leaves the gate
23 h 45 apart on the timetable, overnight
BA 398 leaves 23 h 45 after AZ 204 arrives on the timetable: more than half a day, so not a connection we count.