U2 860 then U2 8743 at Gatwick
Edinburgh → London → Hurghada
Timetable, London time
08:35U2 860 from Edinburgh at the gate
08:30U2 8743 to Hurghada leaves the gate
23 h 55 apart on the timetable, overnight
U2 8743 leaves 23 h 55 after U2 860 arrives on the timetable: more than half a day, so not a connection we count.