EC 7154 then FR 8631 at Barcelona
Milan → Barcelona → Tangier
Timetable, Barcelona time
17:15EC 7154 from Milan at the gate
05:55FR 8631 to Tangier leaves the gate
12 h 40 apart on the timetable, overnight
FR 8631 leaves 12 h 40 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.