UA 4381 then UA 3910 at O'Hare
Buffalo → Chicago → Denver
Timetable, Chicago time
14:55UA 4381 from Buffalo at the gate
10:30UA 3910 to Denver leaves the gate
19 h 35 apart on the timetable, overnight
UA 3910 leaves 19 h 35 after UA 4381 arrives on the timetable: more than half a day, so not a connection we count.