FR 9673 then FR 394 at Madrid
Rome → Madrid → Ibiza
Timetable, Madrid time
15:10FR 9673 from Rome at the gate
13:20FR 394 to Ibiza leaves the gate
22 h 10 apart on the timetable, overnight
FR 394 leaves 22 h 10 after FR 9673 arrives on the timetable: more than half a day, so not a connection we count.