EC 3749 then VY 6012 at Barcelona
Milan → Barcelona → Rome
Timetable, Barcelona time
21:30EC 3749 from Milan at the gate
15:40VY 6012 to Rome leaves the gate
18 h 10 apart on the timetable, overnight
VY 6012 leaves 18 h 10 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.