rate swaps as a cash flow hedges. The Company believes there have been no material changes in the creditworthiness of the counterparty to this interest rate swap and believes the risk of nonperformance by such party is minimal.
As of January 31, 2021, $11.9 million of the interest rate swap liability was classified in other accrued expenses and current liabilities and $12.6 million was classified in other liabilities in the Condensed Consolidated Balance Sheet. The Company recognized losses, net of tax, of $2.2 million and $6.5 million in earnings during the three and nine months ended January 31, 2021, respectively, related to its interest rate swaps. These losses are included in interest expense in the Condensed Consolidated Statements of Operations and Comprehensive Income. As of January 31, 2021, the Company expects that approximately $11.9 million of pre-tax net losses will be reclassified from accumulated other comprehensive income (loss) into earnings during the next twelve months.
The fair value of interest rate swaps is determined using Level 2 inputs. Generally, the Company obtains the Level 2 inputs from its counterparties. Substantially all of the inputs throughout the full term of the instruments can be derived from observable data or are supported by observable levels at which transactions are executed in the marketplace. The fair value of the Company’s interest rate swap was determined using widely accepted valuation techniques including a discounted cash flow analysis on the expected cash flows of the derivative. This analysis reflected the contractual terms of the derivatives, including the period to maturity, and used observable market-based inputs, including interest rate curves and implied volatilities.
Assets and Liabilities Measured at Fair Value on a Nonrecurring Basis
Disclosures are required for certain assets and liabilities that are measured at fair value on a nonrecurring basis in periods subsequent to initial recognition. Such measurements of fair value relate primarily to assets and liabilities measured at fair value in connection with business combinations and long-lived asset impairments. The Company recorded a $1.0 million impairment of operating lease ROU assets during the nine months ended January 31, 2021. There were no other material long-lived asset impairments during the nine months ended January 31, 2021 or 2020.
12. Transactions With Related Parties
The Company purchases inventories from Southern Wall Products, Inc. (“SWP”) on a continuing basis. During the nine months ended January 31, 2021 and 2020 certain former executive officers and stockholders and certain directors and stockholders of the Company were stockholders of SWP. As of October 31, 2020, these executive officers and directors were no longer with the Company. The Company purchased inventory from SWP for distribution in the amount of $3.2 million during the three months ended January 31, 2020 and $7.3 million and $10.5 million during the nine months ended January 31, 2021 and 2020, respectively. The amount due to SWP for purchases of inventory for distribution was $1.2 million as of April 30, 2020 and is included in accounts payable in the Condensed Consolidated Balance Sheet.
13. Commitments and Contingencies
General
The Company is a defendant in various lawsuits and administrative actions associated with personal injuries, claims of former employees and other events arising in the normal course of business. As discussed in Note 1 “—Insurance Liabilities”, the Company records liabilities for these claims, and assets for amounts recoverable from the insurer, for claims covered by insurance.
Favorable Class Action Settlement
In November 2020, the Company received proceeds as part of a class action settlement against certain drywall manufacturers related to purchases made during calendar years 2012 and 2013. The Company recorded a gain on legal settlement of $1.4 million during the three and nine months ended January 31, 2021. This was the final payment related to this class action settlement.