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