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