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