FR 5494 then FR 5897 at Madrid
Milan Bergamo → Madrid → Torino
Timetable, Madrid time
09:05FR 5494 from Milan Bergamo at the gate
05:45FR 5897 to Torino leaves the gate
20 h 40 apart on the timetable, overnight
FR 5897 leaves 20 h 40 after FR 5494 arrives on the timetable: more than half a day, so not a connection we count.