FR 5322 then UX 51 at Madrid
Milan → Madrid → Havana
Timetable, Madrid time
19:45FR 5322 from Milan at the gate
15:10UX 51 to Havana leaves the gatealso EY 4349, MU 4978
19 h 25 apart on the timetable, overnight
UX 51 leaves 19 h 25 after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.