IB 648 then FR 394 at Madrid
Rome → Madrid → Ibiza
Timetable, Madrid time
14:35IB 648 from Rome at the gate
06:40FR 394 to Ibiza leaves the gate
16 h 05 apart on the timetable, overnight
FR 394 leaves 16 h 05 after IB 648 arrives on the timetable: more than half a day, so not a connection we count.