EC 7152 then IB 5062 at Barcelona
Milan → Barcelona → Granada
Timetable, Barcelona time
14:25EC 7152 from Milan at the gate
12:00IB 5062 to Granada leaves the gate
21 h 35 apart on the timetable, overnight
IB 5062 leaves 21 h 35 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.