Net cash provided by operating activities was $8,049 for the nine months ended June 30, 2021 compared to net cash provided by operating activities of $1,586 for the nine months ended June 30, 2020. Contributing factors to our cash provided by operations in the first nine months of fiscal 2021 were noncash charges of $4,087 for depreciation and amortization, $1,040 for stock compensation expense, and a net increase in customer advances of $7,451, as a result of increasing orders and the acquisitions of HistoTox Labs and Bolder BioPATH. These items were partially offset by an increase of $1,306 in accounts payable and an increase of $1,594 in accrued expenses.
Days’ sales in accounts receivable increased to 74 days at June 30, 2021 from 56 days at September 30, 2020 due to an increase in accounts receivable from the acquisitions during the quarter. It is not unusual to see a fluctuation in the Company's pattern of days’ sales in accounts receivable. Customers may expedite or delay payments from period-to-period for a variety of reasons including, but not limited to, the timing of capital raised to fund on-going research and development projects.
Included in operating activities for the nine months ended June 30, 2020 are non-cash charges of $2,747 for depreciation and amortization, $380 for stock compensation expense, $327 increase in accrued expenses and a net increase in customer advances of $4,063, as a result of increasing orders. These items were partially offset by an increase of $701 in accounts receivable, an increase of $395 in inventories, and a decrease of $2,040 in accounts payable.
Investing activities used $49,054 in the nine months ended June 30, 2021 due mainly to cash paid in the acquisition of HistoTox and the Merger of $40,698 and capital expenditures of $8,358 as compared to $9,094 used in the first nine months of fiscal 2020. The capital additions during the nine months ended June 30, 2021 consisted of the purchase of our St. Louis facility, facility improvements in Ft. Collins and investments in laboratory equipment.
Financing activities provided $64,259 in the nine months ended June 30, 2021, compared to $9,850 provided during the nine months ended June 30, 2020. The cash provided in the first nine months of fiscal 2021 included proceeds from the issuance of common stock of $48,972 and borrowings on long-term loans of $17,087, partially offset by payments of long-term borrowings of $2,620 and debt issuance costs of $409. The main sources of cash in the first nine months of fiscal 2020 were from borrowings on the long-term loan of $3,726, funds received from the PPP loan of $5,051 and borrowings on the Construction loan and Capex lines of credit of $1,287 and $2,423, respectively. Total long-term loan payments were $1,157 and net repayments on the Revolving Credit facility were $1,063. Finance lease payments of $330 and payment of debt issuance cost of $111 also contributed to the use of cash.
Capital Resources
Credit Facility
On April 30, 2021, we entered into an Amended and Restated Credit Agreement (the “Credit Agreement”) with First Internet Bank of Indiana (“FIB”) to, among other things, secure additional debt financing in order to fund portions of the consideration for the acquisition of HistoTox Labs and the Merger. The Credit Agreement included eleven term loans (the “Term Loans”), an equipment draw loan (the “Equipment Loan”), and a revolving line of credit (the “Revolving Facility”). On May 26, 2021, we entered into an amendment to the Credit Agreement to, among other things, provide a new term loan facility to finance the acquisition and refurbishment of our Maryland Heights, Missouri, facility, which we had previously leased. The material terms of each of the loans under the Credit Agreement, as amended, are described below.
Included in the Credit Agreement is a requirement that we maintain certain financial covenants, including maintaining a senior funded debt to adjusted EBITDA ratio (as defined in the Credit Agreement) of not greater than (i) 5.25 to 1.00 as of the date of the Credit Agreement and as of June 30, 2021, (ii) 4.75 to 1.00 as of September 30, 2021, (iii) 4.50 to 1.00 as of December 31, 2021, (iv) 4.25 to 1.00 as of March 31, 2022, (v) 4.00 to 1.00 as of June 30, 2022, and (vi) 3.50 to 1.00 as of September 30, 2022 and as of each fiscal quarter end thereafter.
Also included in the Credit Agreement is a requirement that we maintain a fixed charge coverage ratio (as defined in the Credit Agreement) of not less than (i) 1.20 to 1.00, commencing as of September 30, 2021, and continuing as of each fiscal quarter end thereafter up to and including June 30, 2022, and (ii) 1.25 to 1.00 as of September 30, 2022 and as of each fiscal quarter end thereafter.
Upon an event of default, which includes certain customary events such as, among other things, a failure to make required payments when due, a failure to comply with covenants, certain bankruptcy and insolvency events, and defaults under other material indebtedness, FIB may cease advancing funds, increase the interest rate on outstanding balances, accelerate amounts outstanding, terminate the agreement and foreclose on all collateral.
Our obligations under the Credit Agreement are guaranteed by each of our subsidiaries (collectively, the “Guarantors”). Our obligations under the Credit Agreement and the Guarantors’ obligations under their respective guaranties are secured by first priority