FR 5494 then FR 2209 at Madrid
Milan Bergamo → Madrid → Venezia
Timetable, Madrid time
21:55FR 5494 from Milan Bergamo at the gate
17:50FR 2209 to Venezia leaves the gate
19 h 55 apart on the timetable, overnight
FR 2209 leaves 19 h 55 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.