U2 8734 then U2 815 at Gatwick
Budapest → London → Edinburgh
Timetable, London time
22:30U2 8734 from Budapest at the gate
18:55U2 815 to Edinburgh leaves the gate
20 h 25 apart on the timetable, overnight
U2 815 leaves 20 h 25 after U2 8734 arrives on the timetable: more than half a day, so not a connection we count.