AA 2504 then UA 3018 at O'Hare
Houston → Chicago → Newark
Timetable, Chicago time
14:15AA 2504 from Houston at the gate
07:30UA 3018 to Newark leaves the gatealso UA 3910
17 h 15 apart on the timetable, overnight
UA 3018 leaves 17 h 15 after AA 2504 arrives on the timetable: more than half a day, so not a connection we count.