For borrowers who want to close a loan before maturity, the amount due can vary depending on the remaining principal, accrued interest and the contract terms.