DL 2804 then AA 2158 at O'Hare
Boston → Chicago → San Francisco
Timetable, Chicago time
22:36DL 2804 from Boston at the gate
21:31AA 2158 to San Francisco leaves the gate
22 h 55 apart on the timetable, overnight
AA 2158 leaves 22 h 55 after DL 2804 arrives on the timetable: more than half a day, so not a connection we count.