UC GPA Question

<p>Heeyy sorry if this is in the wrong forum or something
I took AP Calc AB during my junior year and I did pretty badly both semesters (1st: C-, 2nd: D), so I decided to retake it in a summer program and I got an A for both semesters. I plan on applying to UCs, but I have no idea how to calculate the UC GPA. I know that the C- doesn't change, but I'm not sure if the D gets overwritten by the new grade or if it gets added? IDK
could someone please help :(( thanks in advance!</p>