EC 7152 then IB 412 at Barcelona
Milan → Barcelona → Madrid
Timetable, Barcelona time
16:10EC 7152 from Milan at the gate
13:35IB 412 to Madrid leaves the gatealso LA 1524, LA 1577, CX 1926, LL 3012, VY 5060, AV 6172, BA 7081, QR 8004, AA 8776
21 h 25 apart on the timetable, overnight
IB 412 leaves 21 h 25 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.