AA 5158 then CI 5345 at Atlanta
Charlotte → Atlanta → San Francisco
Timetable, Atlanta time
10:07AA 5158 from Charlotte at the gate
06:11CI 5345 to San Francisco leaves the gate
20 h 04 apart on the timetable, overnight
CI 5345 leaves 20 h 04 after AA 5158 arrives on the timetable: more than half a day, so not a connection we count.