Compound interest using logarithm base 10