Calculate using the change of base formula.