When charges on a loan of an original bona fide principal amount of five thousand ($5,000) or more have been precomputed in a manner similar to that provided in Section 22400, and the loan is prepaid in full by cash, a new loan, refinancing, or otherwise, or the maturity of the loan contract is accelerated for any reason, the borrower shall receive a rebate or credit of that portion of the precomputed charge that is the difference between the total precomputed charge and the charges at the contract rate computed in accordance with the provisions of Section 22307
or 22308, or on the basis of 12 equal months of 30 days each, on the assumption that all payments were received by the licensee on their respective due dates. This section does not apply to charges paid by the borrower to the lender or others, such as charges computed as a percentage of the loan, that are fully earned upon making the loan, or to charges agreed to be paid by the borrower upon prepayment of a loan secured by a lien upon real property.