Simplify some maths.