AV 182 then FR 394 at Madrid
Bogota → Madrid → Ibiza
Timetable, Madrid time
08:10AV 182 from Bogota at the gate
06:30FR 394 to Ibiza leaves the gate
22 h 20 apart on the timetable, overnight
FR 394 leaves 22 h 20 after AV 182 arrives on the timetable: more than half a day, so not a connection we count.