EC 7154 then VY 8510 at Barcelona
Milan → Barcelona → Marrakesh
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
20:10VY 8510 to Marrakesh leaves the gate
20 h 55 apart on the timetable, overnight
VY 8510 leaves 20 h 55 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.