change the calculation

I changed the calculations to see if the results are adding in the
correct way.