3O 377 then W4 6316 at Barcelona
Tangier → Barcelona → Milan
Timetable, Barcelona time
14:003O 377 from Tangier at the gate
13:10W4 6316 to Milan leaves the gate
23 h 10 apart on the timetable, overnight
W4 6316 leaves 23 h 10 after 3O 377 arrives on the timetable: more than half a day, so not a connection we count.