EC 7152 then VY 1162 at Barcelona
Milan → Barcelona → Munich
Timetable, Barcelona time
16:55EC 7152 from Milan at the gate
12:55VY 1162 to Munich leaves the gatealso IB 5122
20 h apart on the timetable, overnight
VY 1162 leaves 20 h after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.