principal not an integer always
separate methods for simple and compund interest