Fixed calculation errors