FR 3008 then FR 3876 at Madrid
Milan → Madrid → Tangier
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
19:15FR 3876 to Tangier leaves the gate
23 h 25 apart on the timetable, overnight
FR 3876 leaves 23 h 25 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.