income on marketable securities held in the trust account. We incur expenses as a result of being a public company (for legal, financial reporting, accounting and auditing compliance), as well as for due diligence expenses in connection with searching for, and completing, a business combination, including the Proposed Transaction.
For the year ended December 31, 2021, we had net income of $24,245,377, which consists of the change in fair value of warrant liabilities of $27,912,600, interest earned on marketable securities held in the trust account of $115,883 and unrealized gain on marketable securities held in the trust account of $8,962, offset by operating costs of $3,781,644.
For the period from March 24, 2020 (inception) through December 31, 2020, we had net loss of $27,406,287, which consisted of formation and operating costs of $343,208, change in fair value of warrant liability of $26,740,000 and transaction cost allocable to warrants of $381,556, offset by interest earned on marketable securities held in the trust account of $48,914 and unrealized gain on marketable securities held in the trust account of $9,563.
Liquidity and Capital Resources
Until the consummation of our initial public offering, our only source of liquidity was an initial purchase of founder shares by our sponsor and loans from our sponsor.
On October 23, 2020, we consummated our initial public offering of 30,000,000 units, at $10.00 per unit, generating gross proceeds of $300,000,000. Simultaneously with the closing of our initial public offering, we consummated the private placement of 8,000,000 private placement warrants to our sponsor at a price of $1.00 per private placement warrant, generating gross proceeds of $8,000,000.
Following our initial public offering and the sale of the private placement warrants, a total of $300,000,000 was placed in the trust account. We incurred $16,977,876 in transaction costs, including $6,000,000 of underwriting fees, $10,500,000 of deferred underwriting fees and $477,876 of other costs.
For the year ended December 31, 2021, cash used in operating activities was $959,837. Net income of $24,245,377 was affected by interest earned on marketable securities held in the trust account of $115,883, an unrealized gain on marketable securities held in the trust account of $8,962, and the change in fair value of warrant liabilities of $27,912,600. Changes in operating assets and liabilities provided $2,832,231 of cash for operating activities.
For the period from March 24, 2020 (inception) through December 31, 2020, cash used in operating activities was $462,567. Net loss of $27,406,287 was affected by interest earned on marketable securities held in the trust account of $48,914, an unrealized gain on marketable securities held in the trust account of $9,563, transaction cost allocable to warrants of $381,556 and change in fair value of warrant liabilities of $26,740,000. Changes in operating assets and liabilities used $119,359 of cash.
As of December 31, 2021, we had cash and marketable securities held in the trust account of $300,183,322 (including $183,322 of interest income and unrealized gains) consisting of U.S. Treasury Bills with a maturity of 185 days or less. Interest income on the balance in the trust account may be used by us to pay taxes. Through December 31, 2021, we have not withdrawn any interest earned from the trust account.
We intend to use substantially all of the funds held in the trust account, including any amounts representing interest earned on the trust account (less deferred underwriting commissions and income taxes payable), to complete our initial business combination. 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, 2021, we had cash of $124,720 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 a business combination.
In order to fund working capital deficiencies or finance transaction costs in connection with a business combination, our sponsor or an affiliate of our sponsor or certain of our directors and officers may, but are not obligated to, loan us funds as may be required. If we complete our initial business combination, we would repay such loaned amounts. In the event that our 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 the trust account would be used for such repayment. Up to $1,500,000 of such loans may be convertible into warrants identical to the private placement warrants, at a price of $1.00 per warrant at the option of the lender.