EC 3749 then QR 3503 at Barcelona
Milan → Barcelona → Ibiza
Timetable, Barcelona time
21:30EC 3749 from Milan at the gate
14:55QR 3503 to Ibiza leaves the gate
17 h 25 apart on the timetable, overnight
QR 3503 leaves 17 h 25 after EC 3749 arrives on the timetable: more than half a day, so not a connection we count.