EC 7640 then EC 7621 at Lisbon
Madrid → Lisbon → Funchal
Timetable, Lisbon time
09:20EC 7640 from Madrid at the gate
06:00EC 7621 to Funchal leaves the gate
20 h 40 apart on the timetable, overnight
EC 7621 leaves 20 h 40 after EC 7640 arrives on the timetable: more than half a day, so not a connection we count.