FR 2052 then CA 865 at Madrid
Palma de Mallorca → Madrid → Havana
Timetable, Madrid time
16:50FR 2052 from Palma de Mallorca at the gate
14:10CA 865 to Havana leaves the gate
21 h 20 apart on the timetable, overnight
CA 865 leaves 21 h 20 after FR 2052 arrives on the timetable: more than half a day, so not a connection we count.