EC 1703 then UX 1061 at Madrid
Nice → Madrid → Milan
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
15:05UX 1061 to Milan leaves the gate
18 h 25 apart on the timetable, overnight
UX 1061 leaves 18 h 25 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.