UA 3876 then UA 5302 at O'Hare
Miami → Chicago → Kansas City
Timetable, Chicago time
14:49UA 3876 from Miami at the gate
14:35UA 5302 to Kansas City leaves the gate
23 h 46 apart on the timetable, overnight
UA 5302 leaves 23 h 46 after UA 3876 arrives on the timetable: more than half a day, so not a connection we count.