FR 5898 then IB 1345 at Madrid
Torino → Madrid → Amsterdam
Timetable, Madrid time
17:35FR 5898 from Torino at the gate
12:20IB 1345 to Amsterdam leaves the gate
18 h 45 apart on the timetable, overnight
IB 1345 leaves 18 h 45 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.