BA 2202 then U2 8703 at Gatwick
Cancún → London → Agadir
Timetable, London time
09:10BA 2202 from Cancún at the gate
08:05U2 8703 to Agadir leaves the gate
22 h 55 apart on the timetable, overnight
U2 8703 leaves 22 h 55 after BA 2202 arrives on the timetable: more than half a day, so not a connection we count.