BA 2717 then U2 8059 at Gatwick
Funchal → London → Barcelona
Timetable, London time
19:55BA 2717 from Funchal at the gate
18:30U2 8059 to Barcelona leaves the gate
22 h 35 apart on the timetable, overnight
U2 8059 leaves 22 h 35 after BA 2717 arrives on the timetable: more than half a day, so not a connection we count.