FR 5898 then IB 1343 at Madrid
Torino → Madrid → Amsterdam
Timetable, Madrid time
23:10FR 5898 from Torino at the gate
16:15IB 1343 to Amsterdam leaves the gate
17 h 05 apart on the timetable, overnight
IB 1343 leaves 17 h 05 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.