VY 7608 then U2 804 at Gatwick
Barcelona → London → Edinburgh
Timetable, London time
12:50VY 7608 from Barcelona at the gate
10:45U2 804 to Edinburgh leaves the gate
21 h 55 apart on the timetable, overnight
U2 804 leaves 21 h 55 after VY 7608 arrives on the timetable: more than half a day, so not a connection we count.