FR 386 then EC 7651 at Lisbon
Funchal → Lisbon → Madrid
Timetable, Lisbon time
22:00FR 386 from Funchal at the gate
19:10EC 7651 to Madrid leaves the gate
21 h 10 apart on the timetable, overnight
EC 7651 leaves 21 h 10 after FR 386 arrives on the timetable: more than half a day, so not a connection we count.