Liquidity and Capital Resources
Our principal capital requirements are to fund sales and marketing, invest in research and development and capital equipment, to make debt service payments and to fund working capital needs. We calculate working capital as current assets less current liabilities.
Our principal sources of liquidity are our cash, cash equivalents, cash flows from operations and financing activities. Our ability to manage cash and cash equivalents may be limited, as our primary cash flows are dictated by the terms of our sales and supply agreements, contractual obligations, debt instruments and legal and regulatory requirements. From time to time, we may sell accounts receivable to third parties under factoring agreements or engage in accounts receivable discounting to facilitate the collection of cash. In addition, from time to time, we may make payments to our vendors on extended terms with their consent. As of March 31, 2024, we did not have any accounts payable on extended terms or payment deferment with our vendors.
As of June 29, 2018, our Korean subsidiary, Magnachip Semiconductor, Ltd., entered into an arrangement whereby it (i) acquired a water treatment facility from SK hynix for $4.2 million to support our fabrication facility in Gumi, Korea, and (ii) subsequently sold the water treatment facility for $4.2 million to a third party management company that we engaged to run the facility for a 10-year term beginning July 1, 2018. As of March 31, 2024, the outstanding obligation of this arrangement is approximately $18.5 million for remaining service term through 2028.
On March 26, 2024, our Korean subsidiary, Magnachip Semiconductor, Ltd., executed a Standard Credit Agreement (together with its General Terms and Conditions, the “Loan Agreement”) with Korea Development Bank (“KDB”). The Loan Agreement provides for a working capital term loan (the “Term Loan”) of KRW 40,000,000,000 (approximately $29.7 million based on the KRW/USD exchange rate of 1,346.8:1 as of March 31, 2024 as quoted by KEB Hana Bank). The Term Loan requires monthly interest-only payments and matures on March 26, 2027, at which time the full principal balance will be due and payable.
As of March 31, 2024, cash and cash equivalents held by our Korean subsidiaries were $154.5 million, which represents 90% of our total cash and cash equivalents on a consolidated basis. We currently believe that we will have sufficient cash reserves from cash on hand and expected cash from operations to fund our operations as well as capital expenditures for the next 12 months and the foreseeable future.
Working Capital
Our working capital balance as of March 31, 2024 was $213.3 million compared to $198.5 million as of December 31, 2023. The increase in working capital balance was mainly attributable to a $13.5 million increase in cash and cash equivalents resulted mainly from $29.7 million of Term Loan with KDB, which was funded in full to MSK on March 26, 2024. This increase in cash and cash equivalents was offset in part by a $4.1 million of continued execution of stock repurchase program.
Cash Flows from Operating Activities
Cash outflow used in operating activities totaled $4.0 million for the three months ended March 31, 2024, compared to $7.9 million of cash inflow provided by operating activities for the three months ended March 31, 2023. The net operating cash outflow for the three months ended March 31, 2024 reflects our net loss of $15.4 million, as adjusted favorably by $17.3 million, which mainly consisted of depreciation and amortization, provision for severance benefits, provision for inventory reserves, net foreign currency loss and stock-based compensation, and net unfavorable impact of $5.8 million from changes of operating assets and liabilities.
Cash Flows from Investing Activities
Cash outflow used in investing activities totaled $1.5 million for the three months ended March 31, 2024, compared to $3.6 million of cash outflow used in investing activities for the three months ended March 31, 2023. The $2.1 million decrease was primarily attributable to a $2.7 million net decrease in guarantee deposits, which was offset in part by a $0.5 million increase in purchase of property, plant and equipment.
Cash Flows from Financing Activities
Cash inflow provided by financing activities totaled $25.2 million for the three months ended March 31, 2024, compared to $12.4 million of cash outflow used in financing activities for the three months ended March 31, 2023. The financing cash inflow for the three months ended March 31, 2024 was primarily attributable to the $30.1 million of proceeds received from the new Term Loan with KDB, which was offset in part by a payment of $4.1 million for the repurchases of our common stock pursuant to our stock repurchase program and a payment of $0.5 million for the repurchase of our common stock to satisfy tax withholding obligations in
41