Substantially concurrently with the closing of the sale of the Over-Allotment Units, we consummated the private sale of an additional 600,000 Private Placement Warrants at a purchase price of $1.50 per Private Placement Warrant to the sponsor, generating gross proceeds of $900,000. Following the closing of the over-allotment option and sale of additional Private Placement Warrants, a total of $345,000,000 was placed in the trust account, and we had $559,752 of cash held outside of the trust account, after payment of costs related to the Initial Public Offering, and available for working capital purposes. We incurred $19,425,948 in transaction costs, including $6,000,000 of underwriting fees, $12,075,000 of deferred underwriting fees and $1,350,948 of other costs.
For the year ended December 31, 2022, cash used in operating activities was $2,616,998. Interest earned on investments held in the trust account of $3,931,858 and changes in operating assets and liabilities, which used $1,298,338 of cash from operating activities, contributed to net income of $205,069.
For the year ended December 31, 2021, cash used in operating activities was $2,146,161. Interest earned on investments held in the trust account of $66,821 and changes in operating assets and liabilities, which used $749,036 of cash from operating activities, contributed to a net loss of $1,330,304.
As of December 31, 2022 and 2021, we had cash and marketable securities held in the trust account of $348,005,679 and $345,066,821, respectively. We intend to use substantially all of the funds held in the trust account, including any amounts representing interest earned on the trust account to complete our initial business combination. We may withdraw interest to pay franchise and income taxes. During the period ended December 31, 2022, we withdrew $993,000 of interest earned on the trust account to pay our income taxes. To the extent that our capital stock or debt is used, in whole or in part, as consideration to complete our initial business combination, the remaining proceeds held in the trust account will be used as working capital to finance the operations of the target business or businesses, make other acquisitions and pursue our growth strategies.
As of December 31, 2022 and 2021, we had cash of $106,393 and $430,391, respectively, outside of the trust account. We intend to use the funds held outside the trust account primarily to identify and evaluate target businesses, perform business due diligence on prospective target businesses, travel to and from the offices, plants or similar locations of prospective target businesses or their representatives or owners, review corporate documents and material agreements of prospective target businesses, and structure, negotiate and complete an initial business combination.
In order to fund working capital deficiencies or finance transaction costs in connection with an initial business combination, the sponsor, an affiliate of the sponsor, or our officers and directors may, but are not obligated to, loan us funds as may be required. If we complete an initial business combination, we would repay such loaned amounts. In the event that an initial business combination does not close, we may use a portion of the working capital held outside the trust account to repay such loaned amounts but no proceeds from our trust account would be used for such repayment. Up to $2,000,000 of such loans may be convertible into warrants, at a price of $1.50 per warrant at the option of the lender. The warrants would be identical to the Private Placement Warrants, including as to exercise price, exercisability and exercise period. The terms of such loans by our officers and directors, if any, have not been determined and no written agreements exist with respect to such loans. The loans would be repaid upon consummation of an initial business combination, without interest.
We do not believe we will need to raise additional funds in order to meet the expenditures required for operating our business. However, if our estimate of the costs of identifying a target business, undertaking in-depth due diligence and negotiating an initial business combination are less than the actual amount necessary to do so, we may have insufficient funds available to operate our business prior to our initial business combination. Moreover, we may need to obtain additional financing either to complete our initial business combination or because we become obligated to redeem a significant number of our public shares upon consummation of our initial business combination, in which case we may issue additional securities or incur debt in connection with such initial business combination. Subject to compliance with applicable securities laws, we would only complete such financing simultaneously with the completion of our initial business combination. If we are unable to complete our initial business combination because we do not have sufficient funds available to us, we will be forced to cease operations and liquidate the trust account. In addition, following our initial business combination, if cash on hand is insufficient, we may need to obtain additional financing in order to meet our obligations.