U2 8072 then U2 867 at Gatwick
Málaga → London → Glasgow
Timetable, London time
15:55U2 8072 from Málaga at the gate
14:10U2 867 to Glasgow leaves the gate
22 h 15 apart on the timetable, overnight
U2 867 leaves 22 h 15 after U2 8072 arrives on the timetable: more than half a day, so not a connection we count.