U2 872 then VY 7607 at Gatwick
Glasgow → London → Barcelona
Timetable, London time
17:10U2 872 from Glasgow at the gate
13:00VY 7607 to Barcelona leaves the gate
19 h 50 apart on the timetable, overnight
VY 7607 leaves 19 h 50 after U2 872 arrives on the timetable: more than half a day, so not a connection we count.