Fixed up formulas (removed log10 and made pretty parens).