U2 8056 then BA 2642 at Gatwick
Barcelona → London → Málaga
Timetable, London time
16:05U2 8056 from Barcelona at the gate
14:35BA 2642 to Málaga leaves the gate
22 h 30 apart on the timetable, overnight
BA 2642 leaves 22 h 30 after U2 8056 arrives on the timetable: more than half a day, so not a connection we count.