UA 5902 then UA 3875 at O'Hare
Madison → Chicago → Chicago Rockford
Timetable, Chicago time
06:20UA 5902 from Madison at the gate
05:30UA 3875 to Chicago Rockford leaves the gate
23 h 10 apart on the timetable, overnight
UA 3875 leaves 23 h 10 after UA 5902 arrives on the timetable: more than half a day, so not a connection we count.