Calculating percentages
Here the total is 400 with 300 from tests plus 100 from homework. The earned points are 368.