FR 606 then FR 2066 at Madrid
Copenhagen → Madrid → Ibiza
Timetable, Madrid time
20:50FR 606 from Copenhagen at the gate
14:40FR 2066 to Ibiza leaves the gate
17 h 50 apart on the timetable, overnight
FR 2066 leaves 17 h 50 after FR 606 arrives on the timetable: more than half a day, so not a connection we count.