EC 7152 then LA 5766 at Barcelona
Milan → Barcelona → Granada
Timetable, Barcelona time
16:55EC 7152 from Milan at the gate
11:20LA 5766 to Granada leaves the gate
18 h 25 apart on the timetable, overnight
LA 5766 leaves 18 h 25 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.