W4 6311 then IB 559 at Madrid
Milan → Madrid → Funchal
Timetable, Madrid time
09:10W4 6311 from Milan at the gate
05:40IB 559 to Funchal leaves the gate
20 h 30 apart on the timetable, overnight
IB 559 leaves 20 h 30 after W4 6311 arrives on the timetable: more than half a day, so not a connection we count.