EC 7154 then VY 3512 at Barcelona
Milan → Barcelona → Ibiza
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
16:35VY 3512 to Ibiza leaves the gate
17 h 20 apart on the timetable, overnight
VY 3512 leaves 17 h 20 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.