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