FR 5898 then IB 7645 at Madrid
Torino → Madrid → Casablanca
Timetable, Madrid time
17:35FR 5898 from Torino at the gate
13:00IB 7645 to Casablanca leaves the gate
19 h 25 apart on the timetable, overnight
IB 7645 leaves 19 h 25 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.