Just added some paranthesis to the calculations for better reading.