U2 872 then U2 8517 at Gatwick
Glasgow → London → Lisbon
Timetable, London time
17:10U2 872 from Glasgow at the gate
16:20U2 8517 to Lisbon leaves the gate
23 h 10 apart on the timetable, overnight
U2 8517 leaves 23 h 10 after U2 872 arrives on the timetable: more than half a day, so not a connection we count.