Asset Sale to WBA
On September 18, 2017, we entered into the Amended and Restated Asset Purchase Agreement with Walgreens Boots Alliance, Inc. (“WBA”) and Walgreen Co., an Illinois corporation and 100% owned subsidiary of WBA (“Buyer”), in which the Buyer purchased from Rite Aid 1,932 stores, three distribution centers, related inventory and other specified assets and liabilities for a total purchase price of $4,375,000, on a cash-free, debt-free basis.
During the first quarter of fiscal 2021, we completed the sale of the final distribution center and related assets to WBA for proceeds of $94,289. The impact of the sale of the distribution center and related assets resulted in a pre-tax gain of $12,690, which was included in the results of operations and cash flows of discontinued operations during the thirteen week period ended May 30, 2020. The transfer of the final distribution center and related assets constitutes the final closing under the Amended and Restated Asset Purchase Agreement.
In connection with the asset sale, we agreed to provide transition services to Buyer. Under the terms of the Transition Services Agreement (“TSA”), we provided various services on behalf of WBA, including but not limited to the purchase and distribution of inventory and virtually all selling, general and administrative activities. In connection with these services, we purchased the related inventory and incurred cash payments for the selling, general and administrative activities, which, we billed on a cash neutral basis to WBA in accordance with terms as outlined in the TSA. Total billings for these items during the thirteen and thirty-nine week periods ended November 28, 2020 were $0 million and $35.2 million, respectively. We recorded WBA TSA fees of $0 million and $1.5 million during the thirteen and thirty-nine week periods ended November 28, 2020, respectively, which are reflected as a reduction to selling, general and administrative expenses. On October 17, 2020, we and WBA mutually agreed to terminate the services under the TSA.
Based on its magnitude and because we exited certain markets, the Sale represented a significant strategic shift that had a material effect on our operations and financial results. Accordingly, we have applied discontinued operations treatment for the Sale as required by GAAP.
Overview of Financial Results from Continuing Operations
Our net loss from continuing operations for the thirteen week period ended November 27, 2021 was $36.1 million or $0.67 per basic and diluted share compared to net income of $4.3 million or $0.08 per basic and diluted share for the thirteen week period ended November 28, 2020. Our net loss from continuing operations for the thirty-nine week period ended November 27, 2021 was $149.4 million or $2.77 per basic and diluted share compared to a net loss of $81.6 million or $1.52 per basic and diluted share for the thirty-nine week period ended November 28, 2020.
The increase in net loss for the thirteen week period ended November 27, 2021 was due primarily to higher facility exit and impairment charges, a LIFO charge in the current quarter compared to a LIFO credit in the prior year third quarter and a lower gain on sale of assets. These items were partially offset by an increase in Adjusted EBITDA, lower restructuring-related costs and lower depreciation and amortization expense.
The increase in net loss for the thirty-nine week period ended November 27, 2021 was due primarily to higher litigation settlements, increased facility exit and impairment charges, a LIFO charge in the current year compared to a LIFO credit in the prior year, and a lower gain on sale of assets. These items were partially offset by an increase in Adjusted EBITDA, lower restructuring-related costs and lower depreciation and amortization expense. Additionally, the prior year first quarter includes intangible asset impairment charges associated with the rebranding of Elixir.
Our Adjusted EBITDA from continuing operations for the thirteen and thirty-nine week period ended November 27, 2021 was $154.8 million or 2.5% of revenues and $399.8 million or 2.2% of revenues, respectively, compared to $137.4 million or 2.3% of revenues and $396.4 million or 2.2% of revenues, respectively, for the thirteen and thirty-nine week period ended November 28, 2020.
The increase in Adjusted EBITDA for the thirteen week period ended November 27, 2021, was due to an increase in the Retail Pharmacy segment, partially offset by a decrease in the Pharmacy Services segment. Adjusted