EI 594 then W4 6314 at Madrid
Dublin → Madrid → Milan
Timetable, Madrid time
21:30EI 594 from Dublin at the gate
21:15W4 6314 to Milan leaves the gate
23 h 45 apart on the timetable, overnight
W4 6314 leaves 23 h 45 after EI 594 arrives on the timetable: more than half a day, so not a connection we count.