3O 377 then QR 3504 at Barcelona
Tangier → Barcelona → Ibiza
Timetable, Barcelona time
16:453O 377 from Tangier at the gate
16:35QR 3504 to Ibiza leaves the gate
23 h 50 apart on the timetable, overnight
QR 3504 leaves 23 h 50 after 3O 377 arrives on the timetable: more than half a day, so not a connection we count.