IB 706 then FR 394 at Madrid
Rome → Madrid → Ibiza
Timetable, Madrid time
12:55IB 706 from Rome at the gate
06:25FR 394 to Ibiza leaves the gate
17 h 30 apart on the timetable, overnight
FR 394 leaves 17 h 30 after IB 706 arrives on the timetable: more than half a day, so not a connection we count.