EC 7152 then IB 410 at Barcelona
Milan → Barcelona → Madrid
Timetable, Barcelona time
14:25EC 7152 from Milan at the gate
12:30IB 410 to Madrid leaves the gatealso IB 410S, LA 1625, CX 1822, LL 3010, VY 5117, QR 5376, AV 6025, AA 8708
22 h 05 apart on the timetable, overnight
IB 410 leaves 22 h 05 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.