AA 6486 then UA 5788 at O'Hare
Detroit → Chicago → Madison
Timetable, Chicago time
17:29AA 6486 from Detroit at the gate
12:48UA 5788 to Madison leaves the gate
19 h 19 apart on the timetable, overnight
UA 5788 leaves 19 h 19 after AA 6486 arrives on the timetable: more than half a day, so not a connection we count.