UA 4381 then UA 3902 at O'Hare
Buffalo → Chicago → Detroit
Timetable, Chicago time
14:55UA 4381 from Buffalo at the gate
12:02UA 3902 to Detroit leaves the gate
21 h 07 apart on the timetable, overnight
UA 3902 leaves 21 h 07 after UA 4381 arrives on the timetable: more than half a day, so not a connection we count.