EC 1703 then AZ 2402 at Madrid
Nice → Madrid → Ibiza
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
12:50AZ 2402 to Ibiza leaves the gatealso KL 3322, AF 4810, UX 6025, DL 6747, AM 6832, AD 6941, EY 7532, TK 9394, RO 9425
16 h 10 apart on the timetable, overnight
AZ 2402 leaves 16 h 10 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.