FR 189 then I2 1695 at Madrid
Edinburgh → Madrid → Ibiza
Timetable, Madrid time
18:35FR 189 from Edinburgh at the gate
11:40I2 1695 to Ibiza leaves the gatealso IB 1695, BA 7142, AA 8785
17 h 05 apart on the timetable, overnight
I2 1695 leaves 17 h 05 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.