U2 8020 then U2 8635 at Gatwick
Madrid → London → Hamburg
Timetable, London time
14:40U2 8020 from Madrid at the gate
13:00U2 8635 to Hamburg leaves the gate
22 h 20 apart on the timetable, overnight
U2 8635 leaves 22 h 20 after U2 8020 arrives on the timetable: more than half a day, so not a connection we count.