The Credit Agreement was issued at a $563 discount which is being amortized over the term of the term loan. Additionally, deferred financing costs of $1,409 are being amortized over the term of the loan. The Company’s entrance into the Credit Agreement and subsequent settlement of its prior credit agreements is accounted for as an extinguishment of the Company’s prior debt under ASC 470-50, which resulted in the write off of unamortized capitalized deferred financing costs of $972 as well as the write off of unamortized debt discount of $3,964, resulting in a loss on extinguishment of debt of $4,936 in the Consolidated Statement Operations and Comprehensive Income for the year ended December 31, 2021.
At March 31, 2022, the Company had outstanding borrowings under its term loan of $216,091, $12,000 in outstanding borrowings on its revolving credit facility, and remaining borrowing availability of $87,050. At December 31, 2021, the Company had outstanding borrowings under its term loan of $218,875, 0 outstanding borrowings on its revolving credit facility, and remaining borrowing availability of $99,050.
The Credit Agreement includes customary representations, warranties and negative and affirmative covenants, as well as customary events of default and certain cross default provisions that could result in acceleration of the Credit Agreement. In addition, the Credit Agreement requires the Company to have a Leverage Ratio of not more than 3.50 to 1.00 as of the last day of any fiscal quarter commencing with the fiscal quarter ending June 30, 2021, and to have a Consolidated Interest Coverage Ratio (as defined in the Credit Agreement) of not less than 3.00 to 1.00 as of the last day of any fiscal quarter commencing with the fiscal quarter ending June 30, 2021. As of March 31, 2022, the Company was in compliance with the respective covenants.
In accordance with the Company’s prior credit agreements, the Company was required to make additional principal prepayments over the above scheduled payments under certain conditions. This included, in the case of the term loan facility, 100% of the net cash proceeds of certain asset sales, certain insurance or condemnation events, certain debt issuances, and, within 150 days of the end of each fiscal year, 50% of consolidated excess cash flow including a deduction for certain distributions (which percentage is reduced to 0% upon the achievement of certain leverage ratio thresholds), for such fiscal year. Consolidated excess cash flow was defined in the senior credit facilities as consolidated adjusted EBITDA (earnings before interest, taxes, depreciation and amortization) plus a consolidated working capital adjustment, less the sum of repayments of debt and capital expenditures (subject to certain adjustments), interest and taxes paid in cash, management fees and certain restricted payments (including certain dividends or distributions). Consolidated working capital adjustment was defined in the senior credit facilities as the change in working capital, defined as current assets, excluding cash and cash equivalents, less current liabilities, excluding the current portion of long-term debt. The Company made a voluntary payment of $20,000 on its debt on March 31, 2021.
On June 13, 2019, the Company entered into an interest rate swap agreement to reduce its exposure to interest rate volatility. The interest rate swap has a notional amount of $175,000 effective for the period May 31, 2019 through May 31, 2024. The Company may have counterparty credit risk resulting from the interest rate swap, which it monitors on an on-going basis. The risk lies with 1 global financial institution. Under the interest rate swap agreement, the Company will either receive or make payments on a monthly basis based on the differential between 2.495% and LIBOR. The interest rate swap was previously accounted for as a cash flow hedge. During the first quarter of 2020, the swap was determined to be ineffective. As a result, the swap was dedesignated on March 19, 2020, and the remaining losses included in Accumulated other comprehensive income (loss) on the Condensed Consolidated Balance Sheets would be amortized into interest expense on a straight-line basis through the life of the swap. The amount amortized from Accumulated other comprehensive income (loss) into earnings during the three months ended March 31, 2022 and 2021 was ($291) and $748, respectively. A mark-to-market adjustment of $119 and ($2,202) was recorded as Interest expense in the Condensed Consolidated Statements of Operations and Comprehensive Income for the three months ended March 31, 2022 and 2021, respectively, related to the swap.
On June 9, 2021, in conjunction with entering into the Credit Agreement described above, the Company re-designated its swap. As a result, the swap will be recorded at fair value with changes recorded in Accumulated other comprehensive income (loss). The amortization from Accumulated other comprehensive income into earnings from the previous dedesignation has been adjusted as of June 9, 2021 to include the de-recognition of previously recognized mark-to-market gains and the amortization of the off-market component as of the re-designation date,