$400.0 million senior unsecured revolving credit facility and a $350.0 million senior unsecured term loan facility to the Company, as the borrower (the “2017 Credit Agreement”). On August 13, 2018, the Company entered into an amendment to the 2017 Credit Agreement, which extended the maturity date by one year. On February 27, 2019, the Company entered into a second amendment to the 2017 Credit Agreement, which amended the total leverage ratio covenant through December 31, 2019, and which was necessary in order for the Company to remain in compliance with the terms of the 2017 Credit Agreement. The 2017 Credit Agreement is scheduled to mature on September 22, 2023.
Under the 2017 Credit Agreement, the annual interest rate on the loan borrowing is equal to (i) in the case of base rate loans, the sum of an initial borrowing margin of 0.500 percent plus the higher of the prime rate, one-half of one percent in excess of the overnight “federal funds” rate, or the Eurodollar rate for one month plus 1.000 percent, or (ii) in the case of Eurodollar rate loans, the sum of an initial borrowing margin of 1.500 percent plus the Eurodollar rate for the selected interest period. The borrowing margin is subject to adjustment based on the Company’s debt rating as provided by certain rating agencies. The Company has the option to borrow in base rate loans or Eurodollar rate loans at its discretion. The Company has elected to borrow in Eurodollar rate loans that currently have a borrowing margin of 1.75 percent plus the Eurodollar rate for the selected interest period. For three and six months ended June 30, 2021, the weighted average interest rate on the term loan facility was approximately 1.86 and 1.95 percent, respectively. The interest rate on the term loan facility was 1.86% on June 30, 2021. The term loan facility balance under the 2017 Credit Agreement totaled $263.1 million and $154.4 million as of December 31, 2020 and June 30, 2021, respectively.
In March 2021, the Company made voluntary term loan repayments of $100.0 million. As of June 30, 2021, the contractual maturities, totaling $154.4 million of the term loan under the 2017 Credit Agreement were as follows: 2021—$0.0 million; 2022—$0.0 million; and 2023—$154.4 million. Due to the timing of working capital needs, the Company will periodically borrow from the revolving loan under the 2017 Credit Agreement. At December 31, 2020 and June 30, 2021, the Company had 0 revolving loans, resulting in borrowing capacity of $400.0 million under the 2017 Credit Agreement. Included in long-term debt, finance lease and deferred financing obligations are deferred loan and bond issuance costs as of December 31, 2020 and June 30, 2021 of $4.2 million and $3.5 million, respectively.
Letter of Credit Agreement
On August 22, 2017, the Company entered into a Continuing Agreement for Standby Letters of Credit with The Bank of Tokyo-Mitsubishi UFJ, Ltd. (“BTMU”), as issuer (the “L/C Agreement”), under which BTMU, at its sole discretion, may provide stand-by letter of credit to the Company. The Company had letters of credit outstanding under the L/C Agreement as of December 31, 2020 and June 30, 2021 of $32.1 million and $33.0 million, respectively.
Finance Lease and Deferred Financing Obligations
There were $16.4 million and $14.2 million of finance lease and deferred financing obligations at December 31, 2020 and June 30, 2021, respectively. The Company’s finance lease and deferred financing obligations represent amounts due under leases for certain properties, computer software (acquired prior to the prospective adoption of ASU 2015-05 on January 1, 2016) and equipment. The recorded gross cost of finance lease assets was $43.0 million and $32.6 million at December 31, 2020 and June 30, 2021, respectively.
Redeemable Non-Controlling Interest
As of June 30, 2021, the Company held a 70% equity interest in Aurelia Health, LLC (“Aurelia”). The other shareholders of Aurelia have the right to exercise put options, requiring the Company to purchase up to 33.3% of the remaining shares during the thirty-day period beginning on January 15, 2022 and each subsequent anniversary thereafter. In addition, for the thirty-day period beginning on January 15, 2022 and each subsequent anniversary thereafter, the Company has the right to purchase 33.3% of the remaining shares (“call option”). The redemption price for these put and call options is based on a fixed multiple of the trailing twelve-month EBITDA at the redemption date. Non-controlling interests with redemption features, such as put options, that are not solely within the Company’s control are considered redeemable non-controlling interests. Redeemable non-controlling interest is considered to be temporary and is therefore reported in a mezzanine level between liabilities and stockholders’ equity on the Company’s consolidated balance sheet at the greater of the initial carrying amount adjusted for the non-controlling interest’s share of net income or loss or its