AA 1732 then AA 5800 at Philadelphia
San Francisco → Philadelphia → Richmond
Timetable, Philadelphia time
21:04AA 1732 from San Francisco at the gate
18:40AA 5800 to Richmond leaves the gate
21 h 36 apart on the timetable, overnight
AA 5800 leaves 21 h 36 after AA 1732 arrives on the timetable: more than half a day, so not a connection we count.