AA 986 then UA 1862 at O'Hare
Baltimore → Chicago → Punta Cana
Timetable, Chicago time
08:50AA 986 from Baltimore at the gate
08:42UA 1862 to Punta Cana leaves the gate
23 h 52 apart on the timetable, overnight
UA 1862 leaves 23 h 52 after AA 986 arrives on the timetable: more than half a day, so not a connection we count.