UA 5902 then UA 5940 at O'Hare
Madison → Chicago → Tucson
Timetable, Chicago time
06:20UA 5902 from Madison at the gate
19:54UA 5940 to Tucson leaves the gate
13 h 34 apart on the timetable
UA 5940 leaves 13 h 34 after UA 5902 arrives on the timetable: more than half a day, so not a connection we count.