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