For the three months ended March 31, 2023 the Company recognized a net foreign currency exchange gain of $338, compared to a net loss of $52 for the three months ended March 31, 2022, reflecting foreign currency gains and loss on transactions denominated in a currency other than the local entity’s functional currency.
The provision for income taxes for the three months ended March 31, 2023 and 2022 reflects a combined effective U.S. federal, state and foreign tax rate of 21.9% and 16.9%, respectively. The higher year over year rate was due to favorable tax adjustments in foreign tax jurisdictions in the prior year. The principal differences between the federal statutory tax rate and the effective tax rate consist primarily of state taxes, domestic tax credits, and tax differences on foreign earnings.
Liquidity and Capital Resources
Cash used in operating activities was $6,764 for the three months ended March 31, 2023, compared to cash used in operating activities of $28,936 in the comparable period in 2022. Cash provided by or used in operating activities is generally attributable to the receipt of payments from our customers as settlement of their contractual obligation once we have fulfilled all performance obligations related to our contracts with them. These cash receipts are netted with payments for purchases of inventory, materials used in manufacturing, and other expenses that are necessary in the ordinary course of our operations, such as utilities and taxes. The change in net cash flows from operating activities during the three months ended March 31, 2023, in comparison to the three months ended March 31, 2022, is primarily due to increases in receivables related to increases in sales, coupled with recent increases in inventory purchases associated with increased production levels and necessary to mitigate supply chain constraints.
Cash used in investing activities was $1,749 for the three months ended March 31, 2023 compared to $4,083 for the comparable period in 2022. The cash used in investing activities for the three months ended March 31, 2023 was for purchases of property, plant and equipment.
Cash used in financing activities was $2,059 for the three months ended March 31, 2023, compared to cash provided by financing activities of $7,939 for the comparable period in 2022. Net cash flows used in financing activities for the three months ended March 31, 2023 resulted from payment of cash dividends of $2,059. Net cash flows from financing activities for the three months ended March 31, 2022 resulted from the advances on the credit facility, offset by payment of cash dividends of $2,055 and an immaterial amount of payments on finance lease obligations.
As of March 31, 2023, we had cash and temporary investments of $29,720, and an additional $55,000 in available borrowings under our existing credit facility. Our primary cash requirements include working capital, capital expenditures, the funding of any declared cash dividends and principal and interest payments on indebtedness. At March 31, 2023, the Company had commitments of approximately $9,159 for the acquisition of property, plant and equipment. At March 31, 2023, we also had a commitment of approximately $2,874 in software license fees related to the implementation of our enterprise software solution.
We expect our primary sources of cash to be cash flows from operations, cash and temporary investments on hand at March 31, 2023 and borrowings under our credit facility as needed. We expect these sources to be sufficient to satisfy our cash needs for at least the next year. However, our ability to satisfy our cash needs will substantially depend upon several factors, including our future operating performance, taking into account the supply chain, economic and other factors discussed above and elsewhere in this Quarterly Report on Form 10-Q, as well as financial, business and other factors, many of which are beyond our control.
As of March 31, 2023 and December 31, 2022, $20,715 and $18,254, respectively, of the Company’s cash and temporary investments were held by foreign subsidiaries and their holdings are generally based in the local currency.
Credit Facilities and Other Obligations
Credit Facility
The Company’s current loan agreement with First Horizon Bank, which governs its existing $100.0 million unsecured revolving credit facility with a maturity date of May 31, 2027, contains customary representations and warranties, events of default, and financial, affirmative and negative covenants for loan agreements of this kind. The credit facility restricts the payment of cash dividends if the payment would cause the Company to be in violation of the minimum tangible net worth test or the leverage ratio test in the loan agreement, among various other customary covenants. The Company has been in compliance with these covenants throughout 2022 and during the first three months of 2023, and it is anticipated that the Company will continue to be in compliance for the foreseeable future.
In absence of a default, all borrowings under the credit facility bear interest at the one month Term SOFR Rate plus 1.00% or 1.25% per annum, depending on the leverage ratio. The Company pays a non-usage fee under the current loan agreement at a rate per annum equal to between 0.15% and 0.35% of the unused amount of the credit facility, which fee is paid quarterly.