UA 3501 then AA 2158 at O'Hare
Detroit → Chicago → San Francisco
Timetable, Chicago time
06:57UA 3501 from Detroit at the gate
21:31AA 2158 to San Francisco leaves the gate
14 h 34 apart on the timetable
AA 2158 leaves 14 h 34 after UA 3501 arrives on the timetable: more than half a day, so not a connection we count.