UA 297 then UA 3908 at O'Hare
Baltimore → Chicago → Newark
Timetable, Chicago time
13:54UA 297 from Baltimore at the gate
12:00UA 3908 to Newark leaves the gate
22 h 06 apart on the timetable, overnight
UA 3908 leaves 22 h 06 after UA 297 arrives on the timetable: more than half a day, so not a connection we count.