three and six months ended June 30, 2022, respectively. Discrete items, primarily related to excess tax benefits related to stock option exercises, of ($0.9) million and ($0.4) million for the three and six months ended June 30, 2022, respectively, are recognized as a benefit against income tax expense. For the three and six months ended June 30, 2022 the Company had an income tax expense of approximately $0.8 million and $1.4 million, respectively. The Company recorded income tax expense of $1.0 million and $0.6 million for the three and six months ended June 30, 2021.
LIQUIDITY AND CAPITAL RESOURCES
We have historically financed operations through cash flows from operations, debt and equity transactions. At June 30, 2022, our principal source of liquidity was $26.9 million in cash and $27.8 million in accounts receivable.
Net cash provided by operating activities for the six months ended June 30, 2022 was $1.6 million compared with net cash used in operating activities of $4.3 million for the six months ended June 30, 2021. The increase in cash provided by operating activities for the six months ended June 30, 2022 was primarily due to an increase in net income as well as a decrease in the receivables balance. The increase was partially offset by increased inventory due to our order growth, in-transit inventory, plus increased stockpiles in anticipation of possible supply chain shortages.
Net cash used in investing activities for the six months ended June 30, 2022 and 2020 was $0.2 million and $0.4 million, respectively. Cash used in investing activities for the six months ended June 30, 2022 was primarily related to leasehold improvements at our new facility for Kestrel and the purchase of computer equipment. Cash used in investing activities for the six months ended June 30, 2021 was primarily related to the purchase of leasehold improvements at our manufacturing and warehouse facility .
Net cash used in financing activities for the six months ended June 30, 2021 was $17.1 million compared with net cash used in financing activities of $2.2 million for the same period in 2021. Net cash used in financing activities for the six months ended June 30, 2022 was primarily due to purchases of treasury stock, payment of cash dividends in January 2022, and principal payments on long-term debt. Net cash used in financing activities for the six months ended June 30, 2021 was primarily due to purchases of treasury stock.
We believe our cash and cash equivalents, together with anticipated cash flow from operations will be sufficient to meet our working capital, and capital expenditure requirements for at least the next twelve months. In making this assessment, we considered the following:
| ● | Our cash and cash equivalents balance at June 30, 2022 of $26.9 million; |
| ● | Our working capital balance of $51.8 million; |
| ● | Our projected income and cash flows for the next 12 months. |
CRITICAL ACCOUNTING POLICIES AND ESTIMATES
Our discussion and analysis of our financial condition and results of operations are based upon our financial statements, which have been prepared in accordance with accounting principles generally accepted in the United States of America.
Please refer to the “Management’s Discussion and Analysis of Financial Condition and Results of Operation” and Note 2 to the consolidated financial statements located within our Annual Report on Form 10-K for the year ended December 31, 2021, filed with the Securities and Exchange Commission on March 22, 2022.
OFF BALANCE SHEET ARRANGEMENTS
The Company had no significant off-balance sheet arrangements that have or are reasonably likely to have a current or future effect on our financial condition, changes in financial condition, revenues or expenses, results of operations, liquidity, capital expenditures or capital resources that are material to our stockholders.