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