BA 2717 then AT 1693 at Gatwick
Funchal → London → Tetouan
Timetable, London time
19:55BA 2717 from Funchal at the gate
18:45AT 1693 to Tetouan leaves the gate
22 h 50 apart on the timetable, overnight
AT 1693 leaves 22 h 50 after BA 2717 arrives on the timetable: more than half a day, so not a connection we count.