LP 2484 then FR 2066 at Madrid
Lima → Madrid → Ibiza
Timetable, Madrid time
16:35LP 2484 from Lima at the gate
13:45FR 2066 to Ibiza leaves the gate
21 h 10 apart on the timetable, overnight
FR 2066 leaves 21 h 10 after LP 2484 arrives on the timetable: more than half a day, so not a connection we count.