Modification or new loan?
When a borrower and the same lender exchange or change debt terms, and the borrower isn't in a troubled restructuring, ASC 470-50 compares cash flows. Discount the cash flows under the new terms and the remaining cash flows under the old terms at the old debt's effective rate. If the two present values differ by at least 10%, the terms are substantially different: the old debt is extinguished, the new debt is recorded at fair value, and a gain or loss is recognized. If they differ by less than 10%, it is a modification: no gain or loss, and a new effective rate applies from then on. Fees the borrower pays to or receives from the lender count in the new cash flows. In an extinguishment those lender fees go into the gain or loss and third-party costs become issuance costs of the new debt; in a modification lender fees are amortized with any existing discount or premium and third-party costs are expensed.