FR 2054 then IB 379 at Madrid
Palma de Mallorca → Madrid → San Juan
Timetable, Madrid time
23:10FR 2054 from Palma de Mallorca at the gate
16:00IB 379 to San Juan leaves the gate
16 h 50 apart on the timetable, overnight
IB 379 leaves 16 h 50 after FR 2054 arrives on the timetable: more than half a day, so not a connection we count.