formula for calculating high school graduation scores