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