Fixed Bug In Calculation

Oops.