VY 7606 then U2 8821 at Gatwick
Barcelona → London → Krakow
Timetable, London time
12:20VY 7606 from Barcelona at the gate
06:35U2 8821 to Krakow leaves the gate
18 h 15 apart on the timetable, overnight
U2 8821 leaves 18 h 15 after VY 7606 arrives on the timetable: more than half a day, so not a connection we count.