AA 790 then AA 5229 at Charlotte
Phoenix → Charlotte → Harrisburg
Timetable, Charlotte time
12:03AA 790 from Phoenix at the gate
08:30AA 5229 to Harrisburg leaves the gate
20 h 27 apart on the timetable, overnight
AA 5229 leaves 20 h 27 after AA 790 arrives on the timetable: more than half a day, so not a connection we count.