SM 3029 then I2 1697 at Madrid
Cairo → Madrid → Ibiza
Timetable, Madrid time
11:40SM 3029 from Cairo at the gate
10:20I2 1697 to Ibiza leaves the gatealso IB 1697, VY 5544, AA 8676
22 h 40 apart on the timetable, overnight
I2 1697 leaves 22 h 40 after SM 3029 arrives on the timetable: more than half a day, so not a connection we count.