UA 368 then UA 3876 at O'Hare
San Francisco → Chicago → Miami
Timetable, Chicago time
05:47UA 368 from San Francisco at the gate
21:00UA 3876 to Miami leaves the gate
15 h 13 apart on the timetable
UA 3876 leaves 15 h 13 after UA 368 arrives on the timetable: more than half a day, so not a connection we count.