CI 5240 then AA 4780 at O'Hare
Anchorage → Chicago → Buffalo
Timetable, Chicago time
13:59CI 5240 from Anchorage at the gate
08:00AA 4780 to Buffalo leaves the gate
18 h 01 apart on the timetable, overnight
AA 4780 leaves 18 h 01 after CI 5240 arrives on the timetable: more than half a day, so not a connection we count.