U2 8822 then BA 2642 at Gatwick
Krakow → London → Málaga
Timetable, London time
20:20U2 8822 from Krakow at the gate
14:35BA 2642 to Málaga leaves the gate
18 h 15 apart on the timetable, overnight
BA 2642 leaves 18 h 15 after U2 8822 arrives on the timetable: more than half a day, so not a connection we count.