College App

I am so confused now. I have a question: How do colleges calculate my high school GPA if I was not in America for 9th and 10th grade and I currently retake a D’s class.