U2 810 then LS 3105 at Gatwick
Edinburgh → London → Málaga
Timetable, London time
16:35U2 810 from Edinburgh at the gate
06:25LS 3105 to Málaga leaves the gate
13 h 50 apart on the timetable, overnight
LS 3105 leaves 13 h 50 after U2 810 arrives on the timetable: more than half a day, so not a connection we count.