FR 189 then AZ 2402 at Madrid
Edinburgh → Madrid → Ibiza
Timetable, Madrid time
13:55FR 189 from Edinburgh 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
22 h 55 apart on the timetable, overnight
AZ 2402 leaves 22 h 55 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.