UA 3762 then AA 5004 at O'Hare
Manhattan → Chicago → Detroit
Timetable, Chicago time
22:41UA 3762 from Manhattan at the gate
19:00AA 5004 to Detroit leaves the gate
20 h 19 apart on the timetable, overnight
AA 5004 leaves 20 h 19 after UA 3762 arrives on the timetable: more than half a day, so not a connection we count.