BA 2717 then U2 8025 at Gatwick
Funchal → London → Madrid
Timetable, London time
19:55BA 2717 from Funchal at the gate
17:00U2 8025 to Madrid leaves the gate
21 h 05 apart on the timetable, overnight
U2 8025 leaves 21 h 05 after BA 2717 arrives on the timetable: more than half a day, so not a connection we count.