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