U2 860 then BA 2808 at Gatwick
Edinburgh → London → Agadir
Timetable, London time
08:35U2 860 from Edinburgh at the gate
07:30BA 2808 to Agadir leaves the gate
22 h 55 apart on the timetable, overnight
BA 2808 leaves 22 h 55 after U2 860 arrives on the timetable: more than half a day, so not a connection we count.