FR 10 then UX 1061 at Madrid
Dublin → Madrid → Milan
Timetable, Madrid time
22:35FR 10 from Dublin at the gate
15:05UX 1061 to Milan leaves the gate
16 h 30 apart on the timetable, overnight
UX 1061 leaves 16 h 30 after FR 10 arrives on the timetable: more than half a day, so not a connection we count.