UA 3915 then AA 6325 at O'Hare
Miami → Chicago → Detroit
Timetable, Chicago time
22:25UA 3915 from Miami at the gate
18:06AA 6325 to Detroit leaves the gate
19 h 41 apart on the timetable, overnight
AA 6325 leaves 19 h 41 after UA 3915 arrives on the timetable: more than half a day, so not a connection we count.