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