fixed parameters in coumpound interest function