EC 7156 then AT 675 at Barcelona
Milan → Barcelona → Tangier
Timetable, Barcelona time
22:45EC 7156 from Milan at the gate
22:40AT 675 to Tangier leaves the gate
23 h 55 apart on the timetable, overnight
AT 675 leaves 23 h 55 after EC 7156 arrives on the timetable: more than half a day, so not a connection we count.