for the treatment of ocular itching associated with allergic conjunctivitis, and our obtaining marketing approval for and commercializing other products with significant market potential, including OTX-TKI for the treatment of wet AMD, diabetic retinopathy and other retinal diseases, OTX-TIC for the treatment of open-angle glaucoma or ocular hypertension, OTX-DED for the short-term treatment of the signs and symptoms of dry eye disease, and OTX-CSI for the chronic treatment of dry eye disease. Our net loss was $24.2 million and $55.5 million for the three and nine months ended September 30, 2022, respectively. Our net income was $2.7 million for the three months ended September 30, 2021 and our net loss was $2.7 million for the nine months ended September 30, 2021. As of September 30, 2022, we had an accumulated deficit of $601.3 million.
Our total costs and operating expenses were $33.5 million and $96.7 million for the three and nine months ended September 30, 2022 including $4.7 million and $14.3 million in non-cash stock-based compensation expense and depreciation and amortization expense, respectively. Our total costs and operating expenses were $31.7 million and $91.2 million for the three and nine months ended September 30, 2021 including $4.4 million and $13.0 million in non-cash stock-based compensation expense and depreciation and amortization expense, respectively. Our operating expenses have grown as we continue to commercialize DEXTENZA following its entry into the market in July 2019; pursue the clinical development of OTX-TKI, OTX-TIC, OTX-DED, and OTX-CSI; research and develop other product candidates; and seek marketing approval for any product candidate for which we obtain favorable pivotal clinical trial results. We expect to incur substantial sales and marketing expenses in connection with the ongoing commercialization of DEXTENZA and that of any other product candidate for which we may receive approval.
Although we expect to continue to generate revenue from sales of DEXTENZA, we will need to obtain substantial additional funding to support our continuing operations and the ongoing commercialization of DEXTENZA. If we are unable to raise capital through equity offerings, debt financings, government or other third-party funding, collaborations, strategic alliances, licensing arrangements, royalty agreements, and marketing and distribution arrangements when needed or on attractive terms, we could be forced to delay, reduce or eliminate our research and development programs or commercialization efforts or to relinquish valuable rights to our technologies, future revenue streams, research programs or product candidates or grant licenses on terms that may not be favorable to us.
Through September 30, 2022, we have financed our operations primarily through sales of our products, public offerings of our common stock, private placements of our convertible notes, borrowings under credit facilities and private placements of our preferred stock, which has resulted in net proceeds of $641.4 million to us.
In August 2021, we and Jefferies LLC, or Jefferies, entered into an Open Market Sale Agreement, or the 2021 Sales Agreement, under which we may offer and sell shares of our common stock having an aggregate offering price of up to $100.0 million from time to time through Jefferies, acting as agent. In connection with entering into the 2021 Sales Agreement, we and Jefferies terminated our prior Open Market Sale Agreement which we had entered into in 2019. As of November 4, 2022, we have not sold any shares of our common stock under the 2021 Sales Agreement.
DEXTENZA and all of our product candidates are designed to be medical-benefit “buy-and-bill” products with associated procedure codes. Products with these characteristics are designed to be attractive not only to physicians, optometrists, and patients but also to the sites of care that participate in utilization. We primarily derive our product revenues from the sale of DEXTENZA in the United States to a network of specialty distributors, who then sell DEXTENZA to ASCs, HOPDs, and ophthalmology and optometric offices. We also sell directly to a small population of ASCs. In addition to distribution agreements with specialty distributors and a limited number of direct agreements with ASCs, we enter into arrangements with government payors that provide for government-mandated rebates and chargebacks with respect to the purchase of DEXTENZA. In-market unit sales figures—unit sales from specialty distributors to ASCs and HOPDs—for July, August and September 2022 were 8,348, 9,410 and 8,649 units, respectively. In-market unit sales for October 2022 were approximately 11,500 units.
Based on our current plans and forecasted expenses, which includes estimates of anticipated cash inflows from DEXTENZA product sales and cash outflows from operating expenses, we believe that our existing cash and cash equivalents of $121.0 million as of September 30, 2022 will enable us to fund our planned operating expenses, debt service obligations and capital expenditure requirements through 2023. This estimate is based on our current operating plan which includes estimates of anticipated cash inflows from DEXTENZA product sales, and cash outflows from both operating expenses and capital expenditures. These estimates are subject to various assumptions including those related to the severity and duration of the COVID-19 pandemic, the revenues and expenses associated with the commercialization of DEXTENZA, the pace of our research and clinical development programs, and other aspects of