AA 838 then DM 5103 at Miami
Havana → Miami → Punta Cana
Timetable, Miami time
15:53AA 838 from Havana at the gate
15:02DM 5103 to Punta Cana leaves the gate
23 h 09 apart on the timetable, overnight
DM 5103 leaves 23 h 09 after AA 838 arrives on the timetable: more than half a day, so not a connection we count.