If the maturity of a loan made under Section 18636 is accelerated for any reason, the company shall make the same refund or credit as would be required if the loan contract was paid in full on the date of acceleration and the unpaid balance shall be treated as the unpaid principal balance and thereafter the unpaid balance of the loan contract shall bear charges at the agreed rate of charge if the loan contract so provides.