UX 1062 then FR 1206 at Madrid
Milan → Madrid → Venezia
Timetable, Madrid time
20:45UX 1062 from Milan at the gate
19:35FR 1206 to Venezia leaves the gate
22 h 50 apart on the timetable, overnight
FR 1206 leaves 22 h 50 after UX 1062 arrives on the timetable: more than half a day, so not a connection we count.