3O 397 then QR 3663 at Barcelona
Rabat → Barcelona → Milan
Timetable, Barcelona time
08:003O 397 from Rabat at the gate
20:05QR 3663 to Milan leaves the gate
12 h 05 apart on the timetable
QR 3663 leaves 12 h 05 after 3O 397 arrives on the timetable: more than half a day, so not a connection we count.