VY 7600 then U2 8019 at Gatwick
Barcelona → London → Madrid
Timetable, London time
08:20VY 7600 from Barcelona at the gate
08:05U2 8019 to Madrid leaves the gate
23 h 45 apart on the timetable, overnight
U2 8019 leaves 23 h 45 after VY 7600 arrives on the timetable: more than half a day, so not a connection we count.