EC 7154 then LA 5756 at Barcelona
Milan → Barcelona → Dubrovnik
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:00LA 5756 to Dubrovnik leaves the gate
18 h 45 apart on the timetable, overnight
LA 5756 leaves 18 h 45 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.