IB 1040 then FR 2066 at Madrid
Mahón → Madrid → Ibiza
Timetable, Madrid time
15:15IB 1040 from Mahón at the gate
13:45FR 2066 to Ibiza leaves the gate
22 h 30 apart on the timetable, overnight
FR 2066 leaves 22 h 30 after IB 1040 arrives on the timetable: more than half a day, so not a connection we count.