For the year ended December 31, 2019, net cash provided by operating activities of $20.8 million was attributable to a net loss of $159.9 million, adjusted by net, non-cash charges of $174.4 million and a net increase in working capital of $6.4 million. The non-cash charges consisted primarily of unrealized losses on derivative instruments of $141.3 million, depreciation and amortization of $64.7 million, a loss on extinguishment of debt of $2.8 million associated with certain refinancings of our projects, and amortization of deferred financing costs of $5.6 million, offset by net insurance proceeds of $38.4 million, which were utilized for capital expenditures and included as part of our investing activities.
Investing Activities
Our investing activities primarily consist of capital expenditures related to project acquisitions and the purchase of property, plant and equipment related to the contracted, pre-construction and construction projects.
For the nine months ended September 30, 2021, net cash used in investing activities was $821.7 million, which was primarily related to cash payments for acquisitions and capitalized costs for our contracted pre-construction and construction projects of $796.4 million, and cash paid for deposits, net of deposit refunds, of $25.7 million primarily related to an expanding development pipeline encompassing deposits for PPAs, interconnection agreements, and network upgrades.
For the nine months ended September 30, 2020, net cash used in investing activities was $655.7 million, which was primarily related to cash payments for acquisitions and capitalized costs for our contracted pre-construction and construction projects of $653.8 million, and cash paid for deposits, net of deposit refunds, of $4.0 million primarily related to an expanding development pipeline encompassing deposits for PPAs, interconnection agreements, and network upgrades, and cash received from distributions from our investment funds of $2.1 million.
For the year ended December 31, 2020, net cash used in investing activities was $918.3 million, which was primarily related to cash payments for acquisitions and capitalized costs for our contracted pre-construction and construction projects of $905.2 million, and cash paid for deposits, net of deposit refunds, of $17.3 million primarily related to an expanding development pipeline encompassing deposits for PPAs, interconnection agreements, and network upgrades, offset by cash received from distributions from our investment funds of $3.1 million.
For the year ended December 31, 2019, net cash used in investing activities was $651.6 million, which was primarily related to cash payments for acquisitions and capitalized costs for our contracted pre-construction and construction projects of $644.8 million, cash paid for deposits, net of deposit refunds of $13.3 million primarily related to an expanding development pipeline and related deposits for PPAs, interconnection agreements, and network upgrades, offset by cash received from distributions from our investment funds of $6.3 million.
Financing Activities
Our financing activities primarily consist of proceeds from borrowings and distributions to members.
For the nine months ended September 30, 2021, net cash provided by financing activities was $778.6 million, which was primarily related to proceeds from borrowings, net of financing costs, of $914.7 million, proceeds from the sale of subsidiary interests of $129.4 million, and proceeds from tax equity financings, net of issuance costs, of $171.3 million, partially offset by the repayment of borrowings of $297.3 million, distributions to non-controlling interests of $63.5 million, distributions to members of $41.2 million, and the repayment of short-term financing, net of proceeds, of $34.8 million from the D. E. Shaw group.
For the nine months ended September 30, 2020, net cash provided by financing activities was $570.9 million, which was primarily related to proceeds from borrowings, net of financing costs, of $907.6 million, proceeds from the sale of subsidiary interests of $27.4 million, and proceeds from tax equity financings, net of issuance costs, of $82.4 million, partially offset by the repayment of borrowings of $331 million, distributions to non-controlling interests of $76.4 million, distributions to members of $29 million, and the repayment of short-term financing of $10.1 million from the D. E. Shaw group.
For the year ended December 31, 2020, net cash provided by financing activities was $918.1 million, which was primarily related to proceeds from borrowings, net of financing costs, of $1,213.8 million, short-term financing of $23.9 million from the D. E. Shaw group, proceeds from tax equity financings, net of issuance costs, of $273.2 million, and proceeds from the sale of minority interests of $32.0 million, offset by the repayment of borrowings of $467.0 million, distributions to non-controlling interests of $106.9 million, and distributions to members of $51.0 million.