3O 391 then FR 5897 at Madrid
Tangier → Madrid → Torino
Timetable, Madrid time
16:403O 391 from Tangier at the gate
12:50FR 5897 to Torino leaves the gate
20 h 10 apart on the timetable, overnight
FR 5897 leaves 20 h 10 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.