FR 5898 then AT 973 at Madrid
Torino → Madrid → Casablanca
Timetable, Madrid time
23:10FR 5898 from Torino at the gate
13:00AT 973 to Casablanca leaves the gate
13 h 50 apart on the timetable, overnight
AT 973 leaves 13 h 50 after FR 5898 arrives on the timetable: more than half a day, so not a connection we count.