U2 862 then U2 8703 at Gatwick
Glasgow → London → Agadir
Timetable, London time
10:50U2 862 from Glasgow at the gate
09:20U2 8703 to Agadir leaves the gate
22 h 30 apart on the timetable, overnight
U2 8703 leaves 22 h 30 after U2 862 arrives on the timetable: more than half a day, so not a connection we count.