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