U2 8520 then U2 8025 at Gatwick
Funchal → London → Madrid
Timetable, London time
16:10U2 8520 from Funchal at the gate
15:30U2 8025 to Madrid leaves the gate
23 h 20 apart on the timetable, overnight
U2 8025 leaves 23 h 20 after U2 8520 arrives on the timetable: more than half a day, so not a connection we count.