U2 852 then VY 7607 at Gatwick
Inverness → London → Barcelona
Timetable, London time
13:40U2 852 from Inverness at the gate
13:00VY 7607 to Barcelona leaves the gate
23 h 20 apart on the timetable, overnight
VY 7607 leaves 23 h 20 after U2 852 arrives on the timetable: more than half a day, so not a connection we count.