U2 8018 then U2 8733 at Gatwick
Madrid → London → Budapest
Timetable, London time
15:10U2 8018 from Madrid at the gate
09:25U2 8733 to Budapest leaves the gate
18 h 15 apart on the timetable, overnight
U2 8733 leaves 18 h 15 after U2 8018 arrives on the timetable: more than half a day, so not a connection we count.