fixed denominator of percentage calculations