BA 817 then MS 780 at Heathrow
Copenhagen → London → Cairo
Timetable, London time
22:05BA 817 from Copenhagen at the gate
22:00MS 780 to Cairo leaves the gate
23 h 55 apart on the timetable, overnight
MS 780 leaves 23 h 55 after BA 817 arrives on the timetable: more than half a day, so not a connection we count.