W4 6207 then FR 5897 at Madrid
Rome → Madrid → Torino
Timetable, Madrid time
11:55W4 6207 from Rome at the gate
08:00FR 5897 to Torino leaves the gate
20 h 05 apart on the timetable, overnight
FR 5897 leaves 20 h 05 after W4 6207 arrives on the timetable: more than half a day, so not a connection we count.