calculating semester GPA works