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