U2 8628 then LS 3105 at Gatwick
Berlin → London → Málaga
Timetable, London time
08:00U2 8628 from Berlin at the gate
06:25LS 3105 to Málaga leaves the gate
22 h 25 apart on the timetable, overnight
LS 3105 leaves 22 h 25 after U2 8628 arrives on the timetable: more than half a day, so not a connection we count.