U2 810 then BA 2656 at Gatwick
Edinburgh → London → Alicante
Timetable, London time
16:35U2 810 from Edinburgh at the gate
15:45BA 2656 to Alicante leaves the gate
23 h 10 apart on the timetable, overnight
BA 2656 leaves 23 h 10 after U2 810 arrives on the timetable: more than half a day, so not a connection we count.