UX 54 then FR 2051 at Madrid
Havana → Madrid → Palma de Mallorca
Timetable, Madrid time
13:30UX 54 from Havana at the gate
09:25FR 2051 to Palma de Mallorca leaves the gate
19 h 55 apart on the timetable, overnight
FR 2051 leaves 19 h 55 after UX 54 arrives on the timetable: more than half a day, so not a connection we count.