AA 2489 then UA 1862 at O'Hare
Baltimore → Chicago → Punta Cana
Timetable, Chicago time
08:45AA 2489 from Baltimore at the gate
07:38UA 1862 to Punta Cana leaves the gate
22 h 53 apart on the timetable, overnight
UA 1862 leaves 22 h 53 after AA 2489 arrives on the timetable: more than half a day, so not a connection we count.