FR 5483 then CA 865 at Madrid
Porto → Madrid → Havana
Timetable, Madrid time
01:15FR 5483 from Porto at the gate
14:10CA 865 to Havana leaves the gate
12 h 55 apart on the timetable
CA 865 leaves 12 h 55 after FR 5483 arrives on the timetable: more than half a day, so not a connection we count.