UA 4455 then UA 3907 at O'Hare
Madison → Chicago → Newark
Timetable, Chicago time
13:49UA 4455 from Madison at the gate
11:30UA 3907 to Newark leaves the gate
21 h 41 apart on the timetable, overnight
UA 3907 leaves 21 h 41 after UA 4455 arrives on the timetable: more than half a day, so not a connection we count.