Net Income. Net income was $125.6 million, or $3.70 per common share, for the first nine months of 2021, compared to $85.1 million, or $2.50 per common share, for the first nine months of 2020. Results for the first nine months of 2021 include an after-tax charge of $13.5 million, or $0.40 per common share, for restructuring.
Results for the first nine months of 2020 include an after-tax charge of $6.5 million, or $0.19 per common share, for restructuring; $0.7 million, or $0.02 per common share, for other long-lived asset impairment charges, $0.7 million, or $0.02 per common share, for acquisition related costs; and $0.8 million, or $0.02 per common share, for footprint optimization; partially offset by $0.7 million, or $0.02 per common share, of a net gain on disposal.
Liquidity and Capital Resources
We generated $134.9 million of net cash from operating activities in the first nine months of 2021 as compared to $127.4 million of net cash provided by operating activities in the first nine months of 2020. The increase in cash was primarily related to higher net income partially offset by higher working capital needs.
We used $14.7 million of net cash for investing activities in the first nine months of 2021 compared to $39.1 million used in the first nine months of 2020. We used $14.2 million less cash for capital expenditures, $7.7 million less cash for acquisitions and received $3.4 million more in cash proceeds from asset sales in the first nine months of 2021 compared to the first nine months of 2020. For the fourth quarter of 2021, we expect to invest approximately $13 million to $15 million in capital equipment as part of our ongoing commitment to improve our operating capabilities.
We used $95.3 million of net cash in financing activities during the first nine months of 2021 primarily due to long-term debt repayments of $80.0 million (offset by proceeds from drawdowns of $35.0 million), dividend payments of $25.5 million, tax withholding payments on vested stock awards of $9.6 million, and payments of $11.8 million to repurchase approximately 87,000 shares of Class A common stock. In the first nine months of 2020, we used $119.5 million of net cash in financing activities primarily due to long-term debt repayments of $467.5 million (offset by proceeds from drawdowns of $407.5 million), dividend payments of $23.2 million, tax withholding payments on vested stock awards of $7.8 million, and payments of $24.8 million to repurchase approximately 295,000 shares of Class A common stock.
On March 30, 2021, we and certain of our subsidiaries entered into a Second Amended and Restated Credit Agreement (the “Second Amended Credit Agreement”) with JPMorgan Chase Bank, N.A., as administrative agent. The Second Amended Credit Agreement amends and restates the Amended Credit Agreement (defined below) to extend the maturity date of the $800 million senior unsecured revolving credit facility from February 12, 2022 to March 30, 2026. Among other changes, the Second Amended Credit Agreement increases our maximum consolidated leverage ratio (including both the base ratio and the ratio permitted during temporary step-ups following certain acquisitions), adjusts certain fees to reflect market conditions and reduces the 1.00% floor on the adjusted LIBOR rate to 0.00%.The senior unsecured revolving credit facility under the Second Amended Credit Agreement (the " New Revolving Credit Facility") also includes sublimits of $100 million for letters of credit and $15 million for swing line loans. As of September 26, 2021, we had drawn down $155.0 million on this line of credit and had $14.0 million in letters of credit outstanding, which resulted in $631.0 million of unused and available credit under the New Revolving Credit Facility. Borrowings outstanding under the New Revolving Credit Facility bear interest at a fluctuating rate per annum equal to an applicable percentage defined as (i) in the case of Eurocurrency rate loans, the adjusted British Bankers Association LIBOR rate plus an applicable percentage, ranging from 1.075% to 1.325%, determined by reference to our consolidated leverage ratio, or (ii) in the case of alternate base rate loans and swing line loans, interest (which at all times will not be less than 1.00%) at the greatest of (a) the Prime Rate in effect on such day, (b) the FRBNY Rate in effect on such day plus 0.50% and (c) the adjusted LIBOR rate plus 1.00% for a one month interest period in dollars. The weighted average interest rate on debt outstanding under the New Revolving Credit Facility as of September 26, 2021 was 1.16%. The weighted average interest rate on debt outstanding inclusive of the interest rate swap discussed in Note 5 of the Notes to Consolidated Financial Statements and interest rates under the New Revolving Credit Facility as of September 26, 2021 was 1.77%. In addition to paying interest under the Second Amended Credit Agreement, we are also required to pay certain fees in connection with the New Revolving Credit Facility, including, but not limited to, an unused facility fee and letter of credit fees. The Second Amended Credit Agreement matures on March 30, 2026, subject to extension under certain circumstances and subject to the terms of the Second Amended Credit Agreement. We may repay loans outstanding under the Second Amended Credit Agreement from time to time without premium or penalty, other than customary breakage costs, if any, and subject to the terms of the Second Amended Credit Agreement. As of September 26, 2021, we were in compliance with all covenants related to the Second Amended Credit Agreement.