EC 7154 then VY 1008 at Barcelona
Milan → Barcelona → Madrid
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
16:30VY 1008 to Madrid leaves the gatealso QR 3515, QR 5529, IB 5992, LL 5992
17 h 15 apart on the timetable, overnight
VY 1008 leaves 17 h 15 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.