Added parantheses to the calculations.