UA 2865 then UA 3907 at O'Hare
Denver → Chicago → Newark
Timetable, Chicago time
14:55UA 2865 from Denver at the gate
11:30UA 3907 to Newark leaves the gate
20 h 35 apart on the timetable, overnight
UA 3907 leaves 20 h 35 after UA 2865 arrives on the timetable: more than half a day, so not a connection we count.