AA 4783 then UA 3018 at O'Hare
Baltimore → Chicago → Newark
Timetable, Chicago time
12:59AA 4783 from Baltimore at the gate
07:30UA 3018 to Newark leaves the gatealso UA 3910
18 h 31 apart on the timetable, overnight
UA 3018 leaves 18 h 31 after AA 4783 arrives on the timetable: more than half a day, so not a connection we count.