FR 386 then IB 534 at Lisbon
Funchal → Lisbon → Madrid
Timetable, Lisbon time
22:00FR 386 from Funchal at the gate
16:45IB 534 to Madrid leaves the gate
18 h 45 apart on the timetable, overnight
IB 534 leaves 18 h 45 after FR 386 arrives on the timetable: more than half a day, so not a connection we count.