UA 5780 then UA 3871 at O'Hare
Memphis → Chicago → Xiamen
Timetable, Chicago time
16:48UA 5780 from Memphis at the gate
15:30UA 3871 to Xiamen leaves the gate
22 h 42 apart on the timetable, overnight
UA 3871 leaves 22 h 42 after UA 5780 arrives on the timetable: more than half a day, so not a connection we count.