FR 6712 then I2 1699 at Madrid
Budapest → Madrid → Ibiza
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
14:05I2 1699 to Ibiza leaves the gate
19 h 55 apart on the timetable, overnight
I2 1699 leaves 19 h 55 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.