EC 7622 then IB 1146 at Lisbon
Funchal → Lisbon → Madrid
Timetable, Lisbon time
22:05EC 7622 from Funchal at the gate
20:45IB 1146 to Madrid leaves the gate
22 h 40 apart on the timetable, overnight
IB 1146 leaves 22 h 40 after EC 7622 arrives on the timetable: more than half a day, so not a connection we count.