IB 2331 then FR 394 at Madrid
Badajoz → Madrid → Ibiza
Timetable, Madrid time
10:45IB 2331 from Badajoz at the gate
06:30FR 394 to Ibiza leaves the gate
19 h 45 apart on the timetable, overnight
FR 394 leaves 19 h 45 after IB 2331 arrives on the timetable: more than half a day, so not a connection we count.