In addition, we have six loans with a carrying value totaling $121.4 million at September 30, 2022, that are collateralized by a land development project. The loans do not carry a current pay rate of interest, however, five of the loans with a carrying value totaling $112.1 million entitle us to a weighted average accrual rate of interest of 7.91%. In 2008, we suspended the recording of the accrual rate of interest on these loans, as they were impaired and we deemed the collection of this interest to be doubtful. At both September 30, 2022 and December 31, 2021, we had a cumulative allowance for credit losses of $71.4 million related to these loans. The loans are subject to certain risks associated with a development project including, but not limited to, availability of construction financing, increases in projected construction costs, demand for the development’s outputs upon completion of the project, and litigation risk. Additionally, these loans were not classified as non-performing as the borrower is compliant with all of the terms and conditions of the loans.
At both September 30, 2022 and December 31, 2021, we had no loans contractually past due 90 days or more that are still accruing interest. During both the three and nine months ended September 30, 2022 and 2021, there was no interest income recognized on nonaccrual loans.
In the third quarter of 2022, we sold 4 bridge loans with an aggregate UPB of $296.9 million at par less shared loan origination fees and selling costs totaling $2.0 million. The shared loan origination fees and selling costs were recorded as an unrealized impairment loss during the second quarter of 2022 and included in other income, net on the consolidated statements of income.
During the second quarter of 2022, we sold a bridge loan and mezzanine loans totaling $110.5 million, that were collateralized by a land development project, at a discount for $102.2 million. In connection with this transaction, we released $66.3 million of capital to be used for future investments and recorded a $9.2 million loss (including fees and expenses), which was included in other income, net on the consolidated statements of income. Additionally, we have the potential to recover up to $2.8 million depending on the future performance of the loan.
In 2020, we entered into a loan modification agreement on a $26.5 million bridge loan with an interest rate of LIBOR plus 6.00% with a 2.375% LIBOR floor and a $6.1 million mezzanine loan with a fixed rate of 12% collateralized by a retail property to: (1) reduce the interest rate on both loans to the greater of: (i) LIBOR plus 5.50% and (ii) 6.50%, and (2) to extend the maturity three years to December 2024. A portion of the foregoing interest equal to 2.00% was deferred to payoff and will be waived if the loan is paid off by December 31, 2022. The loan modification agreement also included a $6.0 million required principal paydown, which occurred at the closing of the modification transaction, and an $8.0 million principal reduction once the borrower deposited an additional reserve of $4.6 million, which took place in 2021 and was charged-off against the previously recorded allowance for credit losses.
In 2019, we purchased $50.0 million of a $110.0 million bridge loan, which was collateralized by a hotel property and scheduled to mature in December 2022. In 2020, we recorded a $7.5 million allowance for credit losses due to a reduction in the appraised value of the property. In 2020, we purchased the remaining $60.0 million bridge loan at a discount for $39.9 million, which we determined had experienced a more than insignificant deterioration in credit quality since origination and, therefore, deemed to be a purchased loan with credit deterioration. The $20.1 million discount was classified as a noncredit discount and no portion of the discount was allocated to allowance for credit losses at the date of purchase since the appraised value of the property was greater than the purchase price. Shortly after the purchase, we entered into a forbearance agreement with the borrower to temporarily reduce the interest rate from LIBOR plus 3.00% with a 1.50% LIBOR floor to a pay rate of 1.00% and to include a $10.0 million principal reduction if the loan is paid off by March 2, 2021. In 2021, we entered into a second forbearance agreement that temporarily eliminated the pay rate, extended the principal reduction payoff deadline to June 30, 2021 and increased the interest rate to an unaccrued default rate of 9.50%, which was deferred until payoff. In June 2021, we received $95.0 million for full satisfaction of these loans, reversed the $7.5 million allowance for credit losses and recorded interest income of $3.5 million.
These two loan modifications were deemed troubled debt restructurings. There were no other loan modifications, refinancing’s and/or extensions during the nine months ended September 30, 2022 and 2021 that were considered troubled debt restructurings.
Given the transitional nature of some of our real estate loans, we may require funds to be placed into an interest reserve, based on contractual requirements, to cover debt service costs. At September 30, 2022 and December 31, 2021, we had total interest reserves of $123.9 million and $87.4 million, respectively, on 463 loans and 328 loans, respectively, with an aggregate UPB of $7.73 billion and $5.75 billion, respectively.