W4 6831 then FR 2436 at Madrid
Torino → Madrid → Rome
Timetable, Madrid time
12:25W4 6831 from Torino at the gate
09:35FR 2436 to Rome leaves the gate
21 h 10 apart on the timetable, overnight
FR 2436 leaves 21 h 10 after W4 6831 arrives on the timetable: more than half a day, so not a connection we count.