Loan and Amortization code in Java