Using formula to work out an amount