W4 6313 then IB 1217 at Madrid
Milan → Madrid → Nice
Timetable, Madrid time
22:25W4 6313 from Milan at the gate
22:00IB 1217 to Nice leaves the gatealso LA 1727, VY 5534, QR 6577
23 h 35 apart on the timetable, overnight
IB 1217 leaves 23 h 35 after W4 6313 arrives on the timetable: more than half a day, so not a connection we count.