AA 5850 then AA 2651 at Charlotte
State College → Charlotte → San Francisco
Timetable, Charlotte time
09:38AA 5850 from State College at the gate
09:35AA 2651 to San Francisco leaves the gate
23 h 57 apart on the timetable, overnight
AA 2651 leaves 23 h 57 after AA 5850 arrives on the timetable: more than half a day, so not a connection we count.