UA 3874 then UA 2226 at O'Hare
Chicago → Chicago → Buffalo
Timetable, Chicago time
01:21UA 3874 from Chicago at the gate
14:18UA 2226 to Buffalo leaves the gate
12 h 57 apart on the timetable
UA 2226 leaves 12 h 57 after UA 3874 arrives on the timetable: more than half a day, so not a connection we count.