//investment calculator. Execise 16.5 in Liang 9th edition.