A Dark Vector Cognition product

Item 8. FINANCIAL STATEMENTS AND SUPPLEMENTARY DATA

279K characters. Original on sec.gov · Markdown

Item 8. FINANCIAL STATEMENTS AND SUPPLEMENTARY DATA

| --- | --- |

Index to Consolidated Financial Statements

Page
Report of Independent Registered Public Accounting Firm70
Consolidated Balance Sheets72
Consolidated Statements of Operations73
Consolidated Statements of Comprehensive Loss74
Consolidated Statements of Redeemable Noncontrolling Interests and Equity75
Consolidated Statements of Cash Flows76
Notes to Consolidated Financial Statements77

Report of Independent Registered Public Accounting Firm

To the Board of Directors and Stockholders of Tesla, Inc.

Opinions on the Financial Statements and Internal Control over Financial Reporting

We have audited the accompanying consolidated balance sheets of Tesla, Inc. and its subsidiaries (the “Company”) as of December 31, 2018 and 2017, and the related consolidated statements of operations, of comprehensive loss, of redeemable noncontrolling interests and equity, and of cash flows for each of the three years in the period ended December 31, 2018, including the related notes (collectively referred to as the “consolidated financial statements”). We also have audited the Company's internal control over financial reporting as of December 31, 2018, based on criteria established in Internal Control - Integrated Framework (2013) issued by the Committee of Sponsoring Organizations of the Treadway Commission (COSO).

In our opinion, the consolidated financial statements referred to above present fairly, in all material respects, the financial position of the Company as of December 31, 2018 and 2017, and the results of its operations and its cash flows for each of the three years in the period ended December 31, 2018 in conformity with accounting principles generally accepted in the United States of America. Also in our opinion, the Company maintained, in all material respects, effective internal control over financial reporting as of December 31, 2018, based on criteria established in Internal Control - Integrated Framework (2013) issued by the COSO.

Change in Accounting Principle

As discussed in Note 2 to the consolidated financial statements, the Company changed the manner in which it accounts for revenue from contracts with customers in 2018.

Basis for Opinions

The Company's management is responsible for these consolidated financial statements, for maintaining effective internal control over financial reporting, and for its assessment of the effectiveness of internal control over financial reporting, included in Management's Report on Internal Control over Financial Reporting appearing under Item 9A. Our responsibility is to express opinions on the Company’s consolidated financial statements and on the Company's internal control over financial reporting based on our audits. We are a public accounting firm registered with the Public Company Accounting Oversight Board (United States) (PCAOB) and are required to be independent with respect to the Company in accordance with the U.S. federal securities laws and the applicable rules and regulations of the Securities and Exchange Commission and the PCAOB.

We conducted our audits in accordance with the standards of the PCAOB. Those standards require that we plan and perform the audits to obtain reasonable assurance about whether the consolidated financial statements are free of material misstatement, whether due to error or fraud, and whether effective internal control over financial reporting was maintained in all material respects.

Our audits of the consolidated financial statements included performing procedures to assess the risks of material misstatement of the consolidated financial statements, whether due to error or fraud, and performing procedures that respond to those risks. Such procedures included examining, on a test basis, evidence regarding the amounts and disclosures in the consolidated financial statements. Our audits also included evaluating the accounting principles used and significant estimates made by management, as well as evaluating the overall presentation of the consolidated financial statements. Our audit of internal control over financial reporting included obtaining an understanding of internal control over financial reporting, assessing the risk that a material weakness exists, and testing and evaluating the design and operating effectiveness of internal control based on the assessed risk. Our audits also included performing such other procedures as we considered necessary in the circumstances. We believe that our audits provide a reasonable basis for our opinions.

Definition and Limitations of Internal Control over Financial Reporting

A company’s internal control over financial reporting is a process designed to provide reasonable assurance regarding the reliability of financial reporting and the preparation of financial statements for external purposes in accordance with generally accepted accounting principles. A company’s internal control over financial reporting includes those policies and procedures that (i) pertain to the maintenance of records that, in reasonable detail, accurately and fairly reflect the transactions and dispositions of the assets of the company; (ii) provide reasonable assurance that transactions are recorded as necessary to permit preparation of financial statements in accordance with generally accepted accounting principles, and that receipts and expenditures of the company are being made only in accordance with authorizations of management and directors of the company; and (iii) provide reasonable assurance regarding prevention or timely detection of unauthorized acquisition, use, or disposition of the company’s assets that could have a material effect on the financial statements.

Because of its inherent limitations, internal control over financial reporting may not prevent or detect misstatements. Also, projections of any evaluation of effectiveness to future periods are subject to the risk that controls may become inadequate because of changes in conditions, or that the degree of compliance with the policies or procedures may deteriorate.

/s/PricewaterhouseCoopers LLP

San Jose, California

February 19, 2019

We have served as the Company’s auditor since 2005.

Tesla, Inc.

Consolidated Balance Sheets

(in thousands, except per share data)

December 31,December 31,
20182017
Assets
Current assets
Cash and cash equivalents$3,685,618$3,367,914
Restricted cash192,551155,323
Accounts receivable, net949,022515,381
Inventory3,113,4462,263,537
Prepaid expenses and other current assets365,671268,365
Total current assets8,306,3086,570,520
Operating lease vehicles, net2,089,7584,116,604
Solar energy systems, leased and to be leased, net6,271,3966,347,490
Property, plant and equipment, net11,330,07710,027,522
Intangible assets, net282,492361,502
Goodwill68,15960,237
MyPower customer notes receivable, net of current portion421,548456,652
Restricted cash, net of current portion398,219441,722
Other assets571,657273,123
Total assets$29,739,614$28,655,372
Liabilities
Current liabilities
Accounts payable$3,404,451$2,390,250
Accrued liabilities and other2,094,2531,731,366
Deferred revenue630,2921,015,253
Resale value guarantees502,840787,333
Customer deposits792,601853,919
Current portion of long-term debt and capital leases2,567,699796,549
Current portion of promissory notes issued to related parties—100,000
Total current liabilities9,992,1367,674,670
Long-term debt and capital leases, net of current portion9,403,6729,418,319
Deferred revenue, net of current portion990,8731,177,799
Resale value guarantees, net of current portion328,9262,309,222
Other long-term liabilities2,710,4032,442,970
Total liabilities23,426,01023,022,980
Commitments and contingencies (Note 17)
Redeemable noncontrolling interests in subsidiaries555,964397,734
Convertible senior notes (Note 13)—70
Equity
Stockholders' equity
Preferred stock; $0.001 par value; 100,000 shares authorized; no shares issued and outstanding——
Common stock; $0.001 par value; 2,000,000 shares authorized; 172,603 and 168,797 shares issued and outstanding as of December 31, 2018 and 2017, respectively173169
Additional paid-in capital10,249,1209,178,024
Accumulated other comprehensive (loss) income(8,218)33,348
Accumulated deficit(5,317,832)(4,974,299)
Total stockholders' equity4,923,2434,237,242
Noncontrolling interests in subsidiaries834,397997,346
Total liabilities and equity$29,739,614$28,655,372

The accompanying notes are an integral part of these consolidated financial statements.

Tesla, Inc.

Consolidated Statements of Operations

(in thousands, except per share data)

Year Ended December 31,
201820172016
Revenues
Automotive sales$17,631,522$8,534,752$5,589,007
Automotive leasing883,4611,106,548761,759
Total automotive revenues18,514,9839,641,3006,350,766
Energy generation and storage1,555,2441,116,266181,394
Services and other1,391,0411,001,185467,972
Total revenues21,461,26811,758,7517,000,132
Cost of revenues
Automotive sales13,685,5726,724,4804,268,087
Automotive leasing488,425708,224481,994
Total automotive cost of revenues14,173,9977,432,7044,750,081
Energy generation and storage1,364,896874,538178,332
Services and other1,880,3541,229,022472,462
Total cost of revenues17,419,2479,536,2645,400,875
Gross profit4,042,0212,222,4871,599,257
Operating expenses
Research and development1,460,3701,378,073834,408
Selling, general and administrative2,834,4912,476,5001,432,189
Restructuring and other135,233——
Total operating expenses4,430,0943,854,5732,266,597
Loss from operations(388,073)(1,632,086)(667,340)
Interest income24,53319,6868,530
Interest expense(663,071)(471,259)(198,810)
Other income (expense), net21,866(125,373)111,272
Loss before income taxes(1,004,745)(2,209,032)(746,348)
Provision for income taxes57,83731,54626,698
Net loss(1,062,582)(2,240,578)(773,046)
Net loss attributable to noncontrolling interests and redeemable noncontrolling interests in subsidiaries(86,491)(279,178)(98,132)
Net loss attributable to common stockholders$(976,091)$(1,961,400)$(674,914)
Net loss per share of common stock attributable to common stockholders
Basic$(5.72)$(11.83)$(4.68)
Diluted$(5.72)$(11.83)$(4.68)
Weighted average shares used in computing net loss per share of common stock
Basic170,525165,758144,212
Diluted170,525165,758144,212

The accompanying notes are an integral part of these consolidated financial statements.

Tesla, Inc.

Consolidated Statements of Comprehensive Loss

(in thousands)

Year Ended December 31,
201820172016
Net loss attributable to common stockholders$(976,091)$(1,961,400)$(674,914)
Unrealized gains (losses) on derivatives:
Change in net unrealized gain——43,220
Less: Reclassification adjustment for net gains into net loss—(5,570)(44,904)
Net unrealized loss on derivatives—(5,570)(1,684)
Foreign currency translation adjustment(41,566)62,658(18,500)
Other comprehensive (loss) income(41,566)57,088(20,184)
Comprehensive loss$(1,017,657)$(1,904,312)$(695,098)

The accompanying notes are an integral part of these consolidated financial statements.

Tesla, Inc.

Consolidated Statements of Redeemable Noncontrolling Interests and Equity

(in thousands, except per share data)

Accumulated
RedeemableAdditionalOtherTotalNoncontrolling
NoncontrollingCommon StockPaid-InAccumulatedComprehensiveStockholders'Interests inTotal
InterestsSharesAmountCapitalDeficitLossEquitySubsidiariesEquity
Balance as of December 31, 2015$—131,425$131$3,409,452$(2,322,323)$(3,556)$1,083,704$—$1,083,704
Reclassification from mezzanine equity to equity for 1.50% Convertible Senior Notes due in 2018———38,501——38,501—38,501
Exercises of conversion feature of convertible senior notes———(15,056)——(15,056)—(15,056)
Common stock issued, net of shares withheld for employee taxes—11,09611163,817——163,828—163,828
Issuance of common stock in May 2016 public offering at $215.00 per share, net of issuance costs of $14,595—7,91581,687,139——1,687,147—1,687,147
Issuance of common stock upon acquisition of SolarCity and assumed awards—11,125112,145,977——2,145,988—2,145,988
Stock-based compensation———347,357——347,357—347,357
Assumption of capped calls———(3,460)——(3,460)—(3,460)
Assumption of noncontrolling interests through acquisition315,943——————750,574750,574
Contributions from noncontrolling interests through acquisition100,996——————100,531100,531
Distributions to noncontrolling interests through acquisition(7,137)——————(10,561)(10,561)
Net loss(42,763)———(674,914)—(674,914)(55,369)(730,283)
Other comprehensive loss—————(20,184)(20,184)—(20,184)
Balance as of December 31, 2016367,039161,5611617,773,727(2,997,237)(23,740)4,752,911785,1755,538,086
Adjustment of prior periods due to adoption of Accounting Standards Update No. 2016-09———15,662(15,662)————
Conversion feature of Convertible Senior Notes due in 2022———145,613——145,613—145,613
Purchases of bond hedges———(204,102)——(204,102)—(204,102)
Sales of warrants———52,883——52,883—52,883
Reclassification from mezzanine equity to equity for 1.50% Convertible Senior Notes due in 2018———8,714——8,714—8,714
Exercises of conversion feature of convertible senior notes—1,4082230,151——230,153—230,153
Common stock issued, net of shares withheld for employee taxes—4,2574259,381——259,385—259,385
Issuance of common stock in March 2017 public offering at $262.00 per share, net of issuance costs of $2,854—1,5362399,645——399,647—399,647
Issuance of common stock upon acquisitions and assumed awards—35010,528—10,528—10,528
Stock-based compensation———485,822——485,822—485,822
Contributions from noncontrolling interests192,421——————597,282597,282
Distributions to noncontrolling interests(100,703)——————(163,626)(163,626)
Buy-outs of noncontrolling interests(2,921)——————(409)(409)
Net loss(58,102)———(1,961,400)—(1,961,400)(221,076)(2,182,476)
Other comprehensive income—————57,08857,088—57,088
Balance as of December 31, 2017397,734168,7971699,178,024(4,974,299)33,3484,237,242997,3465,234,588
Adjustments for prior periods from adopting ASC 6068,101———623,172—623,172(89,084)534,088
Adjustments for prior periods from adopting Accounting Standards Update No. 2017-05————9,386—9,386—9,386
Reclassification from mezzanine equity to equity for 1.50% Convertible Senior Notes due in 2018———70——70—70
Exercises of conversion feature of convertible senior notes—2380(40)——(40)—(40)
Common stock issued, net of shares withheld for employee taxes—3,5684295,719——295,723—295,723
Stock-based compensation———775,554——775,554—775,554
Contributions from noncontrolling interests275,736——————161,399161,399
Distributions to noncontrolling interests(61,557)——————(209,994)(209,994)
Buy-outs of noncontrolling interests(2,829)——(207)——(207)—(207)
Net loss(61,221)———(976,091)—(976,091)(25,270)(1,001,361)
Other comprehensive loss—————(41,566)(41,566)—(41,566)
Balance as of December 31, 2018$555,964172,603$173$10,249,120$(5,317,832)$(8,218)$4,923,243$834,397$5,757,640

The accompanying notes are an integral part of these consolidated financial statements.

Tesla, Inc.

Consolidated Statements of Cash Flows

(in thousands)

Year Ended December 31,
201820172016
Cash Flows from Operating Activities
Net loss$(1,062,582)$(2,240,578)$(773,046)
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:
Depreciation, amortization and impairment1,901,0501,636,003947,099
Stock-based compensation749,024466,760334,225
Amortization of debt discounts and issuance costs158,73091,03794,690
Inventory write-downs85,272131,66565,520
Loss on disposals of fixed assets161,361105,77034,633
Foreign currency transaction (gains) losses(1,511)52,309(29,183)
Loss (gain) related to SolarCity acquisition—57,746(88,727)
Non-cash interest and other operating activities48,507135,237(15,179)
Changes in operating assets and liabilities, net of effect of business combinations:
Accounts receivable(496,732)(24,635)(216,565)
Inventory(1,023,264)(178,850)(632,867)
Operating lease vehicles(214,747)(1,522,573)(1,832,836)
Prepaid expenses and other current assets(82,125)(72,084)56,806
Other assets and MyPower customer notes receivable(207,409)(15,453)(49,353)
Accounts payable and accrued liabilities1,722,850388,206750,640
Deferred revenue406,661468,902382,962
Customer deposits(96,685)170,027388,361
Resale value guarantee(110,564)208,718326,934
Other long-term liabilities159,96681,139132,057
Net cash provided by (used in) operating activities2,097,802(60,654)(123,829)
Cash Flows from Investing Activities
Purchases of property and equipment excluding capital leases, net of sales(2,100,724)(3,414,814)(1,280,802)
Maturities of short-term marketable securities——16,667
Purchases of solar energy systems, leased and to be leased(218,792)(666,540)(159,669)
Business combinations, net of cash acquired(17,912)(114,523)342,719
Net cash used in investing activities(2,337,428)(4,195,877)(1,081,085)
Cash Flows from Financing Activities
Proceeds from issuances of common stock in public offerings—400,1751,701,734
Proceeds from issuances of convertible and other debt6,176,1737,138,0552,852,964
Repayments of convertible and other debt(5,247,057)(3,995,484)(1,857,594)
Repayments of borrowings issued to related parties(100,000)(165,000)—
Collateralized lease (repayments) borrowings(559,167)511,321769,709
Proceeds from exercises of stock options and other stock issuances295,722259,116163,817
Principal payments on capital leases(180,805)(103,304)(46,889)
Common stock and debt issuance costs(14,973)(63,111)(20,042)
Purchases of convertible note hedges—(204,102)—
Proceeds from settlement of convertible note hedges—287,213—
Proceeds from issuances of warrants—52,883—
Payments for settlements of warrants(11)(230,385)—
Proceeds from investments by noncontrolling interests in subsidiaries437,134789,704201,527
Distributions paid to noncontrolling interests in subsidiaries(227,304)(261,844)(21,250)
Payments for buy-outs of noncontrolling interests in subsidiaries(5,957)(373)—
Net cash provided by financing activities573,7554,414,8643,743,976
Effect of exchange rate changes on cash and cash equivalents and restricted cash(22,700)39,726(6,553)
Net increase in cash and cash equivalents and restricted cash311,429198,0592,532,509
Cash and cash equivalents and restricted cash, beginning of period3,964,9593,766,9001,234,391
Cash and cash equivalents and restricted cash, end of period$4,276,388$3,964,959$3,766,900
Supplemental Non-Cash Investing and Financing Activities
Shares issued in connection with business combinations and assumed vested awards$—$10,528$2,145,977
Acquisitions of property and equipment included in liabilities$249,141$914,108$663,771
Estimated fair value of facilities under build-to-suit leases$94,445$313,483$307,879
Supplemental Disclosures
Cash paid during the period for interest, net of amounts capitalized$380,836$182,571$38,693
Cash paid during the period for taxes, net of refunds$35,409$65,695$16,385

The accompanying notes are an integral part of these consolidated financial statements.

Tesla, Inc.

Notes to Consolidated Financial Statements

Note 1 – Overview

Tesla, Inc. (“Tesla”, the “Company”, “we”, “us” or “our”) was incorporated in the State of Delaware on July 1, 2003. We design, develop, manufacture and sell high-performance fully electric vehicles and design, manufacture, install and sell solar energy generation and energy storage products. Our Chief Executive Officer, as the chief operating decision maker (“CODM”), organizes the Company, manages resource allocations and measures performance among two operating and reportable segments: (i) automotive and (ii) energy generation and storage.

Note 2 – Summary of Significant Accounting Policies

Principles of Consolidation

The accompanying consolidated financial statements have been prepared in conformity with U.S. generally accepted accounting principles (“GAAP”) and reflect our accounts and operations and those of our subsidiaries in which we have a controlling financial interest. In accordance with the provisions of Accounting Standards Codification (“ASC”) 810, Consolidation, we consolidate any variable interest entity (“VIE”) of which we are the primary beneficiary. We form VIEs with financing fund investors in the ordinary course of business in order to facilitate the funding and monetization of certain attributes associated with solar energy systems and leases under our direct vehicle leasing programs. The typical condition for a controlling financial interest ownership is holding a majority of the voting interests of an entity; however, a controlling financial interest may also exist in entities, such as VIEs, through arrangements that do not involve controlling voting interests. ASC 810 requires a variable interest holder to consolidate a VIE if that party has the power to direct the activities of the VIE that most significantly impact the VIE’s economic performance and the obligation to absorb losses of the VIE that could potentially be significant to the VIE or the right to receive benefits from the VIE that could potentially be significant to the VIE. We do not consolidate a VIE in which we have a majority ownership interest when we are not considered the primary beneficiary. We have determined that we are the primary beneficiary of a number of VIEs (see Note 18, Variable Interest Entity Arrangements). We evaluate our relationships with all the VIEs on an ongoing basis to ensure that we continue to be the primary beneficiary. All intercompany transactions and balances have been eliminated upon consolidation.

Reclassifications

Certain prior period balances have been reclassified to conform to the current period presentation in the consolidated financial statements and the accompanying notes as a result of the adoption of the Accounting Standards Update (“ASU”) 2016-18, Statement of Cash Flows: Restricted Cash.

Use of Estimates

The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets, liabilities and disclosures in the accompanying notes. Estimates are used for, but not limited to, determining the transaction price of products and services in arrangements with multiple performance obligations and determining the amortization period of these obligations, significant economic incentive for residual value guarantee arrangements, sales return reserves, the collectability of accounts receivable, inventory valuation, fair value of long-lived assets, goodwill, fair value of financial instruments, residual value of operating lease vehicles, depreciable lives of property and equipment and solar energy systems, fair value and residual value of solar energy systems subject to leases, warranty liabilities, income taxes, contingencies, the accrued liability for solar energy system performance guarantees, determining lease pass-through financing obligations, the discount rates used to determine the fair value of investment tax credits, the valuation of build-to-suit lease assets, fair value of interest rate swaps and inputs used to value stock-based compensation. In addition, estimates and assumptions are used for the accounting for business combinations, including the fair values and useful lives of acquired assets, assumed liabilities and noncontrolling interests. Management bases its estimates on historical experience and on various other assumptions believed to be reasonable, the results of which form the basis for making judgments about the carrying values of assets and liabilities. Actual results could differ from those estimates.

Revenue Recognition

Adoption of new accounting standards

ASU 2014-09, Revenue - Revenue from Contracts with Customers. On January 1, 2018, we adopted the new accounting standard ASC 606, Revenue from Contracts with Customers and all the related amendments (“new revenue standard”) using the modified retrospective method. As a policy election, the new revenue standard was applied only to contracts that were not substantially completed as of the date of adoption. We recognized the cumulative effect of initially applying the new revenue standard as an adjustment to the January 1, 2018 opening balance of accumulated deficit. The prior period consolidated financial statements have not been retrospectively adjusted and continue to be reported under the accounting standards in effect for those periods.

A majority of our automotive sales revenue is recognized when control transfers upon delivery to customers. For certain vehicle sales where revenue was previously deferred as an in-substance operating lease, such as certain vehicle sales to customers or leasing partners with a resale value guarantee, we now recognize revenue when the vehicles are shipped as a sale with a right of return. As a result, the corresponding operating lease asset, deferred revenue, and resale value guarantee balances as of December 31, 2017, were reclassified to accumulated deficit as part of our adoption entry. Furthermore, the warranty liability related to such vehicles has been accrued as a result of the change from in-substance operating leases to vehicle sales. Prepayments on contracts that can be cancelled without significant penalties, such as vehicle maintenance plans, have been reclassified from deferred revenue to customer deposits. Refer to the Automotive Revenue and Automotive Leasing Revenue sections below for further discussion of the impact on various categories of vehicle sales.

Following the adoption of the new revenue standard, the revenue recognition for our other sales arrangements, including sales of solar energy systems, energy storage products, services, and sales of used vehicles, remained consistent with our historical revenue recognition policy. Under our lease pass-through fund arrangements, we do not have any further performance obligations and therefore reclassified all investment tax credit (“ITC”) deferred revenue as of December 31, 2017, to accumulated deficit as part of our adoption entry. The corresponding effects of the changes to lease pass-through fund arrangements are also reflected in our non-controlling interests in subsidiaries. Additionally, we have considered the impact from any new revenue arrangements in the current year that would have been accounted for differently under ASC 605, Revenue Recognition, as an adjustment from adoption of the new revenue standard.

Accordingly, the cumulative effect of the changes made to our consolidated January 1, 2018 consolidated balance sheet for the adoption of the new revenue standard was as follows (in thousands):

Balances at December 31, 2017Adjustments from Adoption of New Revenue StandardBalances at January 1, 2018
Assets
Inventory$2,263,537$(27,009)$2,236,528
Prepaid expenses and other current assets268,36551,735320,100
Operating lease vehicles, net4,116,604(1,808,932)2,307,672
Other assets273,12368,355341,478
Liabilities
Accrued liabilities and other1,731,36674,4871,805,853
Deferred revenue1,015,253(436,737)578,516
Resale value guarantees787,333(295,909)491,424
Customer deposits853,91956,081910,000
Deferred revenue, net of current portion1,177,799(429,771)748,028
Resale value guarantees, net of current portion2,309,222(1,346,179)963,043
Other long-term liabilities2,442,970104,7672,547,737
Redeemable noncontrolling interests in subsidiaries397,7348,101405,835
Equity
Accumulated other comprehensive income33,34815,22148,569
Accumulated deficit(4,974,299)623,172(4,351,127)
Noncontrolling interests in subsidiaries997,346(89,084)908,262

In accordance with the new revenue standard requirements, the impact of adoption on our consolidated balance sheet was as follows (in thousands):

December 31, 2018
As ReportedBalances Without Adoption of New Revenue StandardEffect of Change Higher / (Lower)
Assets
Inventory3,113,4463,183,615(70,169)
Prepaid expenses and other current assets365,671278,92986,742
Operating lease vehicles, net2,089,7584,103,277(2,013,519)
Other assets571,657463,558108,099
Liabilities
Accrued liabilities and other2,094,2532,005,18089,073
Deferred revenue630,2921,122,427(492,135)
Resale value guarantees502,840831,350(328,510)
Customer deposits792,601734,24158,360
Deferred revenue, net of current portion990,8731,432,566(441,693)
Resale value guarantees, net of current portion328,9261,994,442(1,665,516)
Other long-term liabilities2,710,4032,587,794122,609
Redeemable noncontrolling interests in subsidiaries555,964549,5206,444
Equity
Accumulated other comprehensive loss(8,218)6,314(14,532)
Accumulated deficit(5,317,832)(6,163,834)846,002
Noncontrolling interests in subsidiaries834,397903,346(68,949)

In accordance with the new revenue standard requirements, the impact of adoption on our consolidated statement of operations and consolidated statement of comprehensive loss was as follows (in thousands):

Year Ended December 31, 2018
As ReportedBalances Without Adoption of New Revenue StandardEffect of Change Higher / (Lower)
Revenues
Automotive sales$17,631,522$16,228,508$1,403,014
Automotive leasing883,4611,716,136(832,675)
Energy generation and storage1,555,2441,540,41914,825
Cost of revenues
Automotive sales13,685,57212,715,818969,754
Automotive leasing488,4251,112,828(624,403)
Provision for income taxes57,83759,332(1,495)
Net loss(1,062,582)(1,303,890)241,308
Net loss attributable to noncontrolling interests and redeemable noncontrolling interests in subsidiaries(86,491)(104,969)18,478
Net loss attributable to common stockholders(976,091)(1,198,921)222,830
Foreign currency translation adjustment(41,566)(11,813)(29,753)
Comprehensive loss(1,017,657)(1,210,734)193,077

In accordance with the new revenue standard requirements, the impact of adoption on our consolidated statement of cash flows for the year ended December 31, 2018 was an increase in collateralized lease repayments of $474.2 million, from a net financing cash outflow of $84.9 million to a net financing cash outflow of $559.2 million as presented, with an offsetting increase to cash outflows from operations. Additionally, the adjustments to the consolidated balance sheet, consolidated statement of operations and consolidated statement of comprehensive income (loss) identified above would have corresponding impacts within the operating section of the consolidated statement of cash flows.

Automotive Segment

Automotive Sales Revenue

Automotive Sales without Resale Value Guarantee

Automotive sales revenue includes revenues related to deliveries of new vehicles, and specific other features and services that meet the definition of a performance obligation under the new revenue standard, including access to our Supercharger network, internet connectivity, Autopilot, full self-driving and over-the-air software updates. We recognize revenue on automotive sales upon delivery to the customer, which is when the control of a vehicle transfers. Payments are typically received at the point control transfers or in accordance with payment terms customary to the business. Other features and services such as access to our Supercharger network, internet connectivity and over-the-air software updates are provisioned upon control transfer of a vehicle and recognized over time on a straight-line basis as we have a stand-ready obligation to deliver such services to the customer. We recognize revenue related to these other features and services over the performance period, which is generally the expected ownership life of the vehicle or the eight-year life of the vehicle. Revenue related to Autopilot and full self-driving features is recognized when functionality is delivered to the customer. For our obligations related to automotive sales, we estimate standalone selling price by considering costs used to develop and deliver the service, third-party pricing of similar options and other information that may be available.

At the time of revenue recognition, we reduce the transaction price and record a reserve against revenue for estimated variable consideration related to future product returns. Such estimates are based on historical experience and are immaterial in all periods presented. In addition, any fees that are paid or payable by us to a customer’s lender when we arrange the financing are recognized as an offset against automotive sales revenue.

Costs to obtain a contract mainly relate to commissions paid to our sales personnel for the sale of vehicles. Commissions are not paid on other obligations such as access to our Supercharger network, internet connectivity, Autopilot, full self-driving and over-the-air software updates. As our contract costs related to automotive sales are typically fulfilled within one year, the costs to obtain a contract are expensed as incurred. Amounts billed to customers related to shipping and handling are classified as automotive revenue, and we have elected to recognize the cost for freight and shipping when control over vehicles, parts, or accessories have transferred to the customer as an expense in cost of revenues. Our policy is to exclude taxes collected from a customer from the transaction price of automotive contracts.

Automotive Sales with Resale Value Guarantee

We offer resale value guarantees or similar buy-back terms to certain international customers who purchase vehicles and who finance their vehicles through one of our specified commercial banking partners. We also offer resale value guarantees in connection with automotive sales to certain leasing partners. Under these programs, we receive full payment for the vehicle sales price at the time of delivery and our counterparty has the option of selling their vehicle back to us during the guarantee period, which currently is generally at the end of the term of the applicable loan or financing program, for a pre-determined resale value.

With the exception of two programs which are discussed within the Automotive Leasing section, we now recognize revenue when control transfers upon delivery to customers in accordance with the new revenue standard as a sale with a right of return as we do not believe the customer has a significant economic incentive to exercise the resale value guarantee provided to them. The process to determine whether there is a significant economic incentive includes a comparison of a vehicle’s estimated market value at the time the option is exercisable with the guaranteed resale value to determine the customer’s economic incentive to exercise. The performance obligations and the pattern of recognizing automotive sales with resale value guarantees are consistent with automotive sales without resale value guarantees with the exception of our estimate for sales return reserve. Sales return reserves for automotive sales with resale value guarantees are estimated based on historical experience plus consideration for expected future market values. The two programs that are still being recorded as operating leases are discussed in further detail below in Vehicle Sales to Leasing Partners with a Resale Value Guarantee and a Buyback Option and Vehicle Sales to Customers with a Resale Value Guarantee where Exercise is Probable.

Prior to the adoption of the new revenue standard, all transactions with resale value guarantees were recorded as operating leases. The amount of sale proceeds equal to the resale value guarantee was deferred until the guarantee expired or was exercised. For certain transactions that were considered interest bearing collateralized borrowings as required under ASC 840, Leases, we also accrued interest expense based on our borrowing rate. The remaining sale proceeds were deferred and recognized on a straight-line basis over the stated guarantee period to automotive leasing revenue. The guarantee period expired at the earlier of the end of the guarantee period or the pay-off of the initial loan. We capitalized the cost of these vehicles on the consolidated balance sheet as operating lease vehicles, net, and depreciated their value, less estimated residual value, to cost of automotive leasing revenue over the same period.

In cases where our counterparty retained ownership of the vehicle at the end of the guarantee period, the resale value guarantee liability and any remaining deferred revenue balances related to the vehicle were settled to automotive leasing revenue, and the net book value of the leased vehicle was expensed to cost of automotive leasing revenue. If our counterparty returned the vehicle to us during the guarantee period, we purchased the vehicle from our counterparty in an amount equal to the resale value guarantee and settled any remaining deferred balances to automotive leasing revenue, and we reclassified the net book value of the vehicle on the consolidated balance sheet to used vehicle inventory.

Deferred revenue activity related to the access to our Supercharger network, internet connectivity, Autopilot, full self-driving and over-the-air software updates on automotive sales with and without resale value guarantee consisted of the following (in thousands):

Year Ended December 31, 2018
Deferred revenue on automotive sales with and without resale value guarantee— beginning of period (post adoption of new revenue standard)$475,919
Additions532,294
Net changes in liability for pre-existing contracts(13,248)
Revenue recognized(112,214)
Deferred revenue on automotive sales with and without resale value guarantee— end of period$882,751

Deferred revenue is equivalent to the total transaction price allocated to the performance obligations that are unsatisfied, or partially unsatisfied, as of December 31, 2018. From the deferred revenue balance as of January 1, 2018, revenue recognized during the year ended December 31, 2018 was $81.0 million. Of the total deferred revenue on automotive sales with and without resale value guarantees, we expect to recognize $326.7 million of revenue in the next 12 months. The remaining balance will be recognized over the performance period as discussed above in Automotive Sales without Resale Value Guarantee.

Automotive Regulatory Credits

California and certain other states have laws in place requiring vehicle manufacturers to ensure that a portion of the vehicles delivered for sale in that state during each model year are zero-emission vehicles. These laws and regulations provide that a manufacturer of zero-emission vehicles may earn regulatory credits (“ZEV credits”) and may sell excess credits to other manufacturers who apply such credits to comply with these regulatory requirements. Similar regulations exist at the federal level that require compliance related to greenhouse gas (“GHG”) emissions and also allow for the sale of excess credits by one manufacturer to other manufacturers. As a manufacturer solely of zero-emission vehicles, we have earned emission credits, such as ZEV and GHG credits, on our vehicles, and we expect to continue to earn these credits in the future. We enter into contractual agreements with third-parties to purchase our regulatory credits. Payments for regulatory credits are typically received at the point control transfers to the customer, or in accordance with payment terms customary to the business.

We recognize revenue on the sale of regulatory credits at the time control of the regulatory credits is transferred to the purchasing party as automotive revenue in the consolidated statement of operations. Revenue from the sale of regulatory credits totaled $418.6 million, $360.3 million and $302.3 million for the years ended December 31, 2018, 2017 and 2016, respectively. We had no deferred revenue related to sales of automotive regulatory credits as of December 31, 2018 and 2017.

Automotive Leasing Revenue

Automotive leasing revenue includes revenue recognized under lease accounting guidance for our direct leasing programs as well as the two programs with resale value guarantees which continue to qualify for operating lease treatment. Prior to the adoption of the new revenue standard, all programs with resale value guarantees were accounted for as operating leases.

Direct Vehicle Leasing Program

We have outstanding leases under our direct vehicle leasing programs in certain locations in the U.S., Canada and Europe. Currently, the direct vehicle leasing program is only offered for new leases to qualified customers in the U.S. and Canada. Qualifying customers are permitted to lease a vehicle directly from Tesla for up to 48 months. At the end of the lease term, customers have the option of either returning the vehicle to us or purchasing it for a pre-determined residual value. We account for these leasing transactions as operating leases. We record leasing revenues to automotive leasing revenue on a straight-line basis over the contractual term, and we record the depreciation of these vehicles to cost of automotive leasing revenue. For the years ended December 31, 2018, 2017 and 2016, we recognized $393.2 million, $220.6 million and $112.7 million, respectively. As of December 31, 2018 and 2017, we had deferred $109.8 million and $96.6 million, respectively, of lease-related upfront payments, which will be recognized on a straight-line basis over the contractual terms of the individual leases.

We capitalize shipping costs and initial direct costs such as the incremental cost of contract administration, referral fees and sales commissions from the origination of automotive lease agreements as an element of operating lease vehicles, net, and subsequently amortize these costs over the term of the related lease agreement. Our policy is to exclude taxes collected from a customer from the transaction price of automotive contracts.

Vehicle Sales to Leasing Partners with a Resale Value Guarantee and a Buyback Option

We offer buyback options in connection with automotive sales with resale value guarantees with certain leasing partner sales in the United States. These transactions entail a transfer of leases, which we have originated with an end-customer, to our leasing partner. As control of the vehicles has not been transferred in accordance with the new revenue standard, these transactions continue to be accounted for as interest bearing collateralized borrowings in accordance with ASC 840, Leases. Under this program, cash is received for the full price of the vehicle and the collateralized borrowing value is generally recorded within resale value guarantees and the customer upfront deposit is recorded within deferred revenue. We amortize the deferred revenue amount to automotive leasing revenue on a straight-line basis over the option period and accrue interest expense based on our borrowing rate. We capitalize vehicles under this program to operating lease vehicles, net, on the consolidated balance sheet, and we record depreciation from these vehicles to cost of automotive leasing revenue during the period the vehicle is under a lease arrangement. Cash received for these vehicles, net of revenue recognized during the period, is classified as collateralized lease (repayments) borrowings within cash flows from financing activities in the consolidated statement of cash flows.

At the end of the lease term, we settle our liability in cash by either purchasing the vehicle from the leasing partner for the buyback option amount or paying a shortfall to the option amount the leasing partner may realize on the sale of the vehicle. Any remaining balances within deferred revenue and resale value guarantee will be settled to automotive leasing revenue. In cases where the leasing partner retains ownership of the vehicle after the end of our option period, we expense the net value of the leased vehicle to cost of automotive leasing revenue. The maximum amount we could be required to pay under this program, should we decide to repurchase all vehicles, was $479.8 million as of December 31, 2018, including $309.8 million within a 12-month period. As of December 31, 2018, we had $558.3 million of such borrowings recorded in resale value guarantees and $92.5 million recorded in deferred revenue liability. For the year ended December 31, 2018, we recognized $332.4 million of leasing revenue related to this program.

On a quarterly basis, we assess the estimated market values of vehicles under our buyback options program to determine if we have sustained a loss on any of these contracts. As we accumulate more data related to the buyback values of our vehicles or as market conditions change, there may be material changes to their estimated values, although we have not experienced any material losses during any period to date.

Vehicle Sales to Customers with a Resale Value Guarantee where Exercise is Probable

For certain international programs where we have offered resale value guarantees to certain customers who purchased vehicles and where we expect the customer has a significant economic incentive to exercise the resale value guarantee provided to them, we continue to recognize these transactions as operating leases. The process to determine whether there is a significant economic incentive includes a comparison of a vehicle’s estimated market value at the time the option is exercisable with the guaranteed resale value to determine the customer’s economic incentive to exercise. We have not sold any vehicles under this program since the first half of 2017 and all current period activity relates to the exercise or cancellation of active transactions. The amount of sale proceeds equal to the resale value guarantee is deferred until the guarantee expires or is exercised. The remaining sale proceeds are deferred and recognized on a straight-line basis over the stated guarantee period to automotive leasing revenue. The guarantee period expires at the earlier of the end of the guarantee period or the pay-off of the initial loan. We capitalize the cost of these vehicles on the consolidated balance sheet as operating lease vehicles, net, and depreciate their value, less salvage value, to cost of automotive leasing revenue over the same period.

In cases where a customer retains ownership of a vehicle at the end of the guarantee period, the resale value guarantee liability and any remaining deferred revenue balances related to the vehicle are settled to automotive leasing revenue, and the net book value of the leased vehicle is expensed to cost of automotive leasing revenue. If a customer returns the vehicle to us during the guarantee period, we purchase the vehicle from the customer in an amount equal to the resale value guarantee and settle any remaining deferred balances to automotive leasing revenue, and we reclassify the net book value of the vehicle on the consolidated balance sheet to used vehicle inventory. As of December 31, 2018, $149.7 million of the guarantees were exercisable by customers within the next 12 months. For the year ended December 31, 2018, we recognized $157.9 million of leasing revenue related to this program.

Services and Other Revenue

Services and other revenue consists of non-warranty after-sales vehicle services, sales of used vehicles, sales of electric vehicle components to other manufacturers, retail merchandise, and sales by our acquired subsidiaries to third party customers. There were no significant changes to the timing or amount of revenue recognition as a result of our adoption of the new revenue standard.

Revenues related to repair and maintenance services are recognized over time as services are provided and extended service plans are recognized over the performance period of the service contract as the obligation represents a stand-ready obligation to the customer. We sell used vehicles, services, service plans, vehicle components and merchandise separately and thus use standalone selling prices as the basis for revenue allocation to the extent that these items are sold in transactions with other performance obligations. Payment for used vehicles, services, and merchandise are typically received at the point when control transfers to the customer or in accordance with payment terms customary to the business. Payments received for prepaid plans are refundable upon customer cancellation of the related contracts and are included within customer deposits on the consolidated balance sheet. Deferred revenue related to services and other revenue was immaterial as of December 31, 2018 and 2017.

Energy Generation and Storage Segment

Energy Generation and Storage Sales

Energy generation and storage revenues consists of the sale of solar energy systems and energy storage systems to residential, small commercial, and large commercial and utility grade customers. Sales of solar energy systems to residential and small scale commercial customers consist of the engineering, design, and installation of the system. Post installation, residential and small scale commercial customers receive a proprietary monitoring system that captures and displays historical energy generation data. Residential and small scale commercial customers pay the full purchase price of the solar energy system upfront. Revenue for the design and installation obligation is recognized when control transfers, which is when we install a solar energy system and the system passes inspection by the utility or the authority having jurisdiction. Revenue for the monitoring service is recognized ratably as a stand-ready obligation over the warranty period of the solar energy system. Sales of energy storage systems to residential and small scale commercial customers consist of the installation of the energy storage system and revenue is recognized when control transfers, which is when the product has been delivered or, if we are performing installation, when installed and accepted by the customer. Payment for such storage systems is made upon invoice or in accordance with payment terms customary to the business.

For large commercial and utility grade solar energy system and energy storage system sales which consist of the engineering, design, and installation of the system, customers make milestone payments that are consistent with contract-specific phases of a project. Revenue from such contracts is recognized over time using the percentage of completion method based on cost incurred as a percentage of total estimated contract costs. Certain large-scale commercial and utility grade solar energy system and energy storage system sales also include operations and maintenance service which are negotiated with the design and installation contracts and are thus considered to be a combined contract with the design and installation service. For certain large commercial and utility grade solar energy systems and energy storage systems where the percentage of completion method does not apply, revenue is recognized when control transfers, which is when the product has been delivered to the customer for energy storage systems and when the project has received permission to operate from the utility for solar energy systems. Operations and maintenance service revenue is recognized ratably over the respective contract term. Customer payments for such services are usually paid annually or quarterly in advance.

In instances where there are multiple performance obligations in a single contract, we allocate the consideration to the various obligations in the contract based on the relative standalone selling price method. Standalone selling prices are estimated based on estimated costs plus margin or using market data for comparable products. Costs incurred on the sale of residential installations before the solar energy systems are completed are included as work in process within inventory in the consolidated balance sheets. However, any fees that are paid or payable by us to a solar loan lender would be recognized as an offset against revenue. Costs to obtain a contract relate mainly to commissions paid to our sales personnel related to the sale of solar energy systems and energy storage systems. As our contract costs related to solar energy system and energy storage system sales are typically fulfilled within one year, the costs to obtain a contract are expensed as incurred.

As part of our solar energy system and energy storage system contracts, we may provide the customer with performance guarantees that warrant that the underlying system will meet or exceed the minimum energy generation or retention requirements specified in the contract. In certain instances, we may receive a bonus payment if the system performs above a specified level. Conversely, if a solar energy system or energy storage system does not meet the performance guarantee requirements, we may be required to pay liquidated damages. Other forms of variable consideration related to our large commercial and utility grade solar energy system and energy storage system contracts include variable customer payments that will be made based on our energy market participation activities. Such guarantees and variable customer payments represent a form of variable consideration and are estimated at contract inception at their most likely amount and updated at the end of each reporting period as additional performance data becomes available. Such estimates are included in the transaction price only to the extent that it is probable a significant reversal of revenue will not occur.

We record as deferred revenue any non-refundable amounts that are collected from customers related to fees charged for prepayments and remote monitoring service and operations and maintenance service, which is recognized as revenue ratably over the respective customer contract term. As of December 31, 2018 and 2017, deferred revenue related to such customer payments amounted to $148.7 million and $124.0 million, respectively. Revenue recognized from the deferred revenue balance as of January 1, 2018, was $41.4 million for the year ended December 31, 2018. We have elected the practical expedient to omit disclosure of the amount of the transaction price allocated to remaining performance obligations for energy generation and storage sales with an original expected contract length of one year or less. As of December 31, 2018, total transaction price allocated to performance obligations that were unsatisfied or partially unsatisfied for contracts with an original expected length of more than one year was $117.9 million. Of this amount, we expect to recognize $7.0 million in the next 12 months and the remaining over a period up to 30 years.

Energy Generation and Storage Leasing

For revenue arrangements where we are the lessor under operating lease agreements for energy generation and storage products, we record lease revenue from minimum lease payments, including upfront rebates and incentives earned from such systems, on a straight-line basis over the life of the lease term, assuming all other revenue recognition criteria have been met. The difference between the payments received and the revenue recognized is recorded as deferred revenue on the consolidated balance sheet.

For solar energy systems where customers purchase electricity from us under power purchase agreements (“PPAs”), we have determined that these agreements should be accounted for as operating leases pursuant to ASC 840. Revenue is recognized based on the amount of electricity delivered at rates specified under the contracts, assuming all other revenue recognition criteria are met.

We record as deferred revenue any amounts that are collected from customers, including lease prepayments, in excess of revenue recognized and operations and maintenance service, which is recognized as revenue ratably over the respective customer contract term. As of December 31, 2018 and 2017, deferred revenue related to such customer payments amounted to $225.4 million and $206.8 million, respectively. Deferred revenue also includes the portion of rebates and incentives received from utility companies and various local and state government agencies, which is recognized as revenue over the lease term. As of December 31, 2018 and December 31, 2017, deferred revenue from rebates and incentives amounted to $36.8 million and $27.2 million, respectively.

We capitalize initial direct costs from the origination of solar energy system leases or PPAs, which include the incremental cost of contract administration, referral fees and sales commissions, as an element of solar energy systems, leased and to be leased, net, and subsequently amortize these costs over the term of the related lease or PPA.

Revenue by source

The following table disaggregates our revenue by major source (in thousands):

Year Ended December 31, 2018
Automotive sales without resale value guarantee$15,809,890
Automotive sales with resale value guarantee1,403,014
Automotive regulatory credits418,618
Energy generation and storage sales1,056,543
Services and other1,391,041
Total revenues from sales and services20,079,106
Automotive leasing883,461
Energy generation and storage leasing498,701
Total revenues$21,461,268

Cost of Revenues

Automotive Segment

Automotive Sales

Cost of automotive sales revenue includes direct parts, material and labor costs, manufacturing overhead, including depreciation costs of tooling and machinery, shipping and logistic costs, vehicle connectivity costs, allocations of electricity and infrastructure costs related to our Supercharger network, and reserves for estimated warranty expenses. Cost of automotive sales revenues also includes adjustments to warranty expense and charges to write down the carrying value of our inventory when it exceeds its estimated net realizable value and to provide for obsolete and on-hand inventory in excess of forecasted demand.

Automotive Leasing

Cost of automotive leasing revenue includes primarily the amortization of operating lease vehicles over the lease term, as well as warranty expenses recognized as incurred. Cost of automotive leasing revenue also includes vehicle connectivity costs and allocations of electricity and infrastructure costs related to our Supercharger network for vehicles under our leasing programs.

Services and Other

Costs of services and other revenue includes costs associated with providing non-warranty after-sales services, costs to acquire and certify used vehicles, and costs for retail merchandise. Cost of services and other revenue also includes direct parts, material and labor costs, manufacturing overhead associated with the sales of electric vehicle components and systems to other manufacturers and sales by our acquired subsidiaries to third party customers.

Energy Generation and Storage Segment

Energy Generation and Storage

Energy generation and storage cost of revenue includes direct and indirect material and labor costs, warehouse rent, freight, warranty expense, other overhead costs and amortization of certain acquired intangible assets. In addition, where arrangements are accounted for as operating leases, the cost of revenue is primarily comprised of depreciation of the cost of leased solar energy systems, maintenance costs associated with those systems and amortization of any initial direct costs.

Research and Development Costs

Research and development costs are expensed as incurred.

Marketing, Promotional and Advertising Costs

Marketing, promotional and advertising costs are expensed as incurred and are included as an element of selling, general and administrative expense in the consolidated statement of operations. We incurred marketing, promotional and advertising costs of $70.0 million, $66.5 million and $48.0 million in the years ended December 31, 2018, 2017 and 2016, respectively.

Income Taxes

Income taxes are computed using the asset and liability method, under which deferred tax assets and liabilities are determined based on the difference between the financial statement and tax bases of assets and liabilities using enacted tax rates in effect for the year in which the differences are expected to affect taxable income. Valuation allowances are established when necessary to reduce deferred tax assets to the amount expected to be realized.

We record liabilities related to uncertain tax positions when, despite our belief that our tax return positions are supportable, we believe that it is more likely than not that those positions may not be fully sustained upon review by tax authorities. Accrued interest and penalties related to unrecognized tax benefits are classified as income tax expense.

Comprehensive Income (Loss)

Comprehensive income (loss) is comprised of net income (loss) and other comprehensive income (loss). Other comprehensive income (loss) consists of unrealized gains and losses on cash flow hedges and available-for-sale marketable securities and foreign currency translation adjustments that have been excluded from the determination of net income (loss).

Stock-Based Compensation

We recognize compensation expense for costs related to all share-based payments, including stock options, restricted stock units (“RSUs”) and our employee stock purchase plan (the “ESPP”). The fair value of stock option awards with only service conditions and the ESPP is estimated on the grant or offering date using the Black-Scholes option-pricing model. The fair value of RSUs is measured on the grant date based on the closing fair market value of our common stock. Stock-based compensation expense is recognized on a straight-line basis over the requisite service period, net of actual forfeitures in the period (prior to 2017, net of estimated projected forfeitures). Stock-based compensation associated with awards assumed from the acquisition of SolarCity Corporation (“SolarCity”) is measured as of the acquisition date using the relevant assumptions and recognized on a straight-line basis over the remaining requisite service period, net of actual forfeitures in the period (prior to 2017, net of estimated projected forfeitures).

For performance-based awards, stock-based compensation expense is recognized over the expected performance achievement period of individual performance milestones when the achievement of each individual performance milestone becomes probable. For performance-based awards with a vesting schedule based entirely on the attainment of both performance and market conditions, stock-based compensation expense is recognized for each pair of performance and market conditions over the longer of the expected achievement period of the performance and market conditions, beginning at the point in time that the relevant performance condition is considered probable of achievement. The fair value of such awards is estimated on the grant date using Monte Carlo simulations (see Note 15, Equity Incentive Plans).

As we accumulate additional employee stock-based awards data over time and as we incorporate market data related to our common stock, we may calculate significantly different volatilities and expected lives, which could materially impact the valuation of our stock-based awards and the stock-based compensation expense that we will recognize in future periods. Stock-based compensation expense is recorded in cost of revenues, research and development expense and selling, general and administrative expense in the consolidated statements of operations.

Noncontrolling Interests and Redeemable Noncontrolling Interests

Noncontrolling interests and redeemable noncontrolling interests represent third-party interests in the net assets under certain funding arrangements, or funds, that we enter into to finance the costs of solar energy systems and vehicles under operating leases. We have determined that the contractual provisions of the funds represent substantive profit sharing arrangements. We have further determined that the appropriate methodology for calculating the noncontrolling interest and redeemable noncontrolling interest balances that reflects the substantive profit sharing arrangements is a balance sheet approach using the hypothetical liquidation at book value (“HLBV”) method. We, therefore, determine the amount of the noncontrolling interests and redeemable noncontrolling interests in the net assets of the funds at each balance sheet date using the HLBV method, which is presented on the consolidated balance sheet as noncontrolling interests in subsidiaries and redeemable noncontrolling interests in subsidiaries. Under the HLBV method, the amounts reported as noncontrolling interests and redeemable noncontrolling interests in the consolidated balance sheet represent the amounts the third-parties would hypothetically receive at each balance sheet date under the liquidation provisions of the funds, assuming the net assets of the funds were liquidated at their recorded amounts determined in accordance with GAAP and with tax laws effective at the balance sheet date and distributed to the third-parties. The third-parties’ interests in the results of operations of the funds are determined as the difference in the noncontrolling interest and redeemable noncontrolling interest balances in the consolidated balance sheets between the start and end of each reporting period, after taking into account any capital transactions between the funds and the third-parties. However, the redeemable noncontrolling interest balance is at least equal to the redemption amount. The redeemable noncontrolling interest balance is presented as temporary equity in the mezzanine section of the consolidated balance sheet since these third-parties have the right to redeem their interests in the funds for cash or other assets.

Net Income (Loss) per Share of Common Stock Attributable to Common Stockholders

Basic net income (loss) per share of common stock attributable to common stockholders is calculated by dividing net income (loss) attributable to common stockholders by the weighted-average shares of common stock outstanding for the period. Potentially dilutive shares, which are based on the weighted-average shares of common stock underlying outstanding stock-based awards, warrants and convertible senior notes using the treasury stock method or the if-converted method, as applicable, are included when calculating diluted net income (loss) per share of common stock attributable to common stockholders when their effect is dilutive. Since we intend to settle in cash the principal outstanding under the 0.25% Convertible Senior Notes due in 2019, the 1.25% Convertible Senior Notes due in 2021 and the 2.375% Convertible Senior Notes due in 2022, we use the treasury stock method when calculating their potential dilutive effect, if any. Furthermore, in connection with the offerings of our bond hedges, we entered into convertible note hedges (see Note 13, Long-Term Debt Obligations). However, our convertible note hedges are not included when calculating potentially dilutive shares since their effect is always anti-dilutive.

The following table presents the potentially dilutive shares that were excluded from the computation of diluted net income (loss) per share of common stock attributable to common stockholders, because their effect was anti-dilutive:

Year Ended December 31,
201820172016
Stock-based awards9,928,78910,456,36312,091,473
Convertible senior notes1,432,6562,315,463841,191
Warrants214,213579,137262,702

Business Combinations

We account for business acquisitions under ASC 805, Business Combinations. The total purchase consideration for an acquisition is measured as the fair value of the assets given, equity instruments issued and liabilities assumed at the acquisition date. Costs that are directly attributable to the acquisition are expensed as incurred. Identifiable assets (including intangible assets), liabilities assumed (including contingent liabilities) and noncontrolling interests in an acquisition are measured initially at their fair values at the acquisition date. We recognize goodwill if the fair value of the total purchase consideration and any noncontrolling interests is in excess of the net fair value of the identifiable assets acquired and the liabilities assumed. We recognize a bargain purchase gain within other income (expense), net, on the consolidated statement of operations if the net fair value of the identifiable assets acquired and the liabilities assumed is in excess of the fair value of the total purchase consideration and any noncontrolling interests. We include the results of operations of the acquired business in the consolidated financial statements beginning on the acquisition date.

Cash and Cash Equivalents

All highly liquid investments with an original maturity of three months or less at the date of purchase are considered cash equivalents. Our cash equivalents are primarily comprised of money market funds.

Restricted Cash

We maintain certain cash balances restricted as to withdrawal or use. Our restricted cash is comprised primarily of cash as collateral for our sales to lease partners with a resale value guarantee, letters of credit, real estate leases, insurance policies, credit card borrowing facilities and certain operating leases. In addition, restricted cash includes cash received from certain fund investors that have not been released for use by us and cash held to service certain payments under various secured debt facilities.

The following table totals cash and cash equivalents and restricted cash as reported on the consolidated balance sheets; the sums are presented in the consolidated statements of cash flows (in thousands):

December 31,December 31,December 31,December 31,
2018201720162015
Cash and cash equivalents$3,685,618$3,367,914$3,393,216$1,196,908
Restricted cash (1)192,551155,323105,5195,961
Restricted cash, net of current portion398,219441,722268,16531,522
Total as presented in the consolidated statements of cash flows$4,276,388$3,964,959$3,766,900$1,234,391
(1)In the consolidated balance sheet as of December 31, 2015, the restricted cash and marketable securities balance of $22.6 million included $16.7 million of marketable securities. This balance of marketable securities has been excluded in the table above.

Accounts Receivable and Allowance for Doubtful Accounts

Accounts receivable primarily include amounts related to sales of powertrain systems, sales of energy generation and storage products, receivables from financial institutions and leasing companies offering various financing products to our customers, sales of regulatory credits to other automotive manufacturers and maintenance services on vehicles owned by leasing companies. We provide an allowance against accounts receivable to the amount we reasonably believe will be collected. We write-off accounts receivable when they are deemed uncollectible.

We typically do not carry significant accounts receivable related to our vehicle and related sales as customer payments are due prior to vehicle delivery, except for amounts due from commercial financial institutions for approved financing arrangements between our customers and the financial institutions.

MyPower Customer Notes Receivable

We have customer notes receivable under the legacy MyPower loan program. MyPower was offered by SolarCity to provide residential customers with the option to finance the purchase of a solar energy system through a 30-year loan. The outstanding balances, net of any allowance for potentially uncollectible amounts, are presented on the consolidated balance sheet as a component of prepaid expenses and other current assets for the current portion and as MyPower customer notes receivable, net of current portion, for the long-term portion. In determining the allowance and credit quality for customer notes receivable, we identify significant customers with known disputes or collection issues and also consider our historical level of credit losses and current economic trends that might impact the level of future credit losses. Customer notes receivable that are individually impaired are charged-off as a write-off of the allowance for losses. Since acquisition, there have been no new significant customers with known disputes or collection issues, and the amount of potentially uncollectible amounts has been insignificant. In addition, there were no material non-accrual or past due customer notes receivable as of December 31, 2018.

Concentration of Risk

Credit Risk

Financial instruments that potentially subject us to a concentration of credit risk consist of cash, cash equivalents, restricted cash, accounts receivable, convertible note hedges, and interest rate swaps. Our cash balances are primarily invested in money market funds or on deposit at high credit quality financial institutions in the U.S. These deposits are typically in excess of insured limits. As of December 31, 2018 and 2017, no entity represented 10% or more of our total accounts receivable balance. The risk of concentration for our interest rate swaps is mitigated by transacting with several highly-rated multinational banks.

Supply Risk

We are dependent on our suppliers, the majority of which are single source suppliers, and the inability of these suppliers to deliver necessary components of our products in a timely manner at prices, quality levels and volumes acceptable to us, or our inability to efficiently manage these components from these suppliers, could have a material adverse effect on our business, prospects, financial condition and operating results.

Inventory Valuation

Inventories are stated at the lower of cost or net realizable value. Cost is computed using standard cost for vehicles and energy storage products, which approximates actual cost on a first-in, first-out basis. In addition, cost for solar energy systems is recorded using actual cost. We record inventory write-downs for excess or obsolete inventories based upon assumptions about on current and future demand forecasts. If our inventory on-hand is in excess of our future demand forecast, the excess amounts are written-off.

We also review our inventory to determine whether its carrying value exceeds the net amount realizable upon the ultimate sale of the inventory. This requires us to determine the estimated selling price of our vehicles less the estimated cost to convert the inventory on-hand into a finished product. Once inventory is written-down, a new, lower cost basis for that inventory is established and subsequent changes in facts and circumstances do not result in the restoration or increase in that newly established cost basis.

Should our estimates of future selling prices or production costs change, additional and potentially material increases to this reserve may be required. A small change in our estimates may result in a material charge to our reported financial results.

Operating Lease Vehicles

Vehicles that are leased as part of our direct vehicle leasing program, vehicles delivered to leasing partners with a resale value guarantee and a buyback option, as well as vehicles delivered to customers with resale value guarantee where exercise is probable are classified as operating lease vehicles as the related revenue transactions are treated as operating leases (refer to the Automotive Leasing Revenue section above for details). Operating lease vehicles are recorded at cost less accumulated depreciation. Depreciation is computed using the straight-line method over the expected operating lease term. The total cost of operating lease vehicles recorded on the consolidated balance sheets as of December 31, 2018 and 2017 was $2.55 billion and $4.85 billion, respectively. Accumulated depreciation related to leased vehicles as of December 31, 2018 and 2017 was $457.6 million and $733.3 million, respectively.

Solar Energy Systems, Leased and To Be Leased

We are the lessor of solar energy systems under leases that qualify as operating leases. Our leases are accounted for in accordance with ASC 840. To determine lease classification, we evaluate the lease terms to determine whether there is a transfer of ownership or bargain purchase option at the end of the lease, whether the lease term is greater than 75% of the useful life or whether the present value of the minimum lease payments exceed 90% of the fair value at lease inception. We utilize periodic appraisals to estimate useful lives and fair values at lease inception and residual values at lease termination. Solar energy systems are stated at cost less accumulated depreciation.

Depreciation and amortization is calculated using the straight-line method over the estimated useful lives of the respective assets, as follows:

Solar energy systems leased to customers30 to 35 years
Initial direct costs related to customer solar energy system lease acquisition costsLease term (up to 25 years)

Solar energy systems held for lease to customers are installed systems pending interconnection with the respective utility companies and will be depreciated as solar energy systems leased to customers when they have been interconnected and placed in-service. Solar energy systems under construction represents systems that are under installation, which will be depreciated as solar energy systems leased to customers when they are completed, interconnected and leased to customers. Initial direct costs related to customer solar energy system lease acquisition costs are capitalized and amortized over the term of the related customer lease agreements.

Property, Plant and Equipment

Property, plant and equipment, including leasehold improvements, are recognized at cost less accumulated depreciation. Depreciation is generally computed using the straight-line method over the estimated useful lives of the respective assets, as follows:

Machinery, equipment, vehicles and office furniture2 to 12 years
Building and building improvements15 to 30 years
Computer equipment and software3 to 10 years

Depreciation for tooling is computed using the units-of-production method whereby capitalized costs are amortized over the total estimated productive life of the respective assets. As of December 31, 2018, the estimated productive life for Model S and Model X tooling was 325,000 vehicles based on our current estimates of production. As of December 31, 2018, the estimated productive life for Model 3 tooling was 1,000,000 vehicles based on our current estimates of production.

Leasehold improvements are depreciated on a straight-line basis over the shorter of their estimated useful lives or the terms of the related leases.

Upon the retirement or sale of our property, plant and equipment, the cost and associated accumulated depreciation are removed from the consolidated balance sheet, and the resulting gain or loss is reflected on the consolidated statement of operations. Maintenance and repair expenditures are expensed as incurred while major improvements that increase the functionality, output or expected life of an asset are capitalized and depreciated ratably over the identified useful life.

Interest expense on outstanding debt is capitalized during the period of significant capital asset construction. Capitalized interest on construction-in-progress is included within property, plant and equipment and is amortized over the life of the related assets.

Furthermore, we are deemed to be the owner, for accounting purposes, during the construction phase of certain long-lived assets under build-to-suit lease arrangements because of our involvement with the construction, our exposure to any potential cost overruns or our other commitments under the arrangements. In these cases, we recognize build-to-suit lease assets under construction and corresponding build-to-suit lease liabilities on the consolidated balance sheet, in accordance with ASC 840. Once construction is completed, if a lease meets certain “sale-leaseback” criteria, we remove the asset and liability and account for the lease as an operating lease. Otherwise, the lease is accounted for as a capital lease.

Long-Lived Assets Including Acquired Intangible Assets

We review our property, plant and equipment, long-term prepayments and intangible assets for impairment whenever events or changes in circumstances indicate that the carrying amount of an asset (or asset group) may not be recoverable. We measure recoverability by comparing the carrying amount to the future undiscounted cash flows that the asset is expected to generate. If the asset is not recoverable, its carrying amount would be adjusted-down to its fair value. For the year ended December 31, 2018, we have recognized certain material impairments of our long-lived assets (refer to Note 4, Intangible Assets, for further details). For the years ended December 31, 2017 and 2016, we have recognized no material impairments of our long-lived assets.

Intangible assets with definite lives are amortized on a straight-line basis over their estimated useful lives, which range from two to thirty years.

Capitalization of Software Costs

For costs incurred in development of internal use software, we capitalize costs incurred during the application development stage. Costs related to preliminary project activities and post-implementation activities are expensed as incurred. Internal use software is amortized on a straight-line basis over its estimated useful life of three to ten years. We evaluate the useful lives of these assets on an annual basis, and we test for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets.

Foreign Currency

We determine the functional and reporting currency of each of our international subsidiaries and their operating divisions based on the primary currency in which they operate. In cases where the functional currency is not the U.S. dollar, we recognize a cumulative translation adjustment created by the different rates we apply to accumulated deficits, including current period income or loss, and the balance sheet. For each subsidiary, we apply the monthly average functional currency rate to its income or loss and the month-end functional currency rate to translate the balance sheet.

Foreign currency transaction gains and losses are a result of the effect of exchange rate changes on transactions denominated in currencies other than the functional currency. Transaction gains and losses are recognized in other income (expense), net, in the consolidated statement of operations. For the years ended December 31, 2018, 2017 and 2016, we recorded foreign currency transaction gains of $1.5 million, losses of $52.3 million and gains of $26.1 million, respectively.

Warranties

We provide a manufacturer’s warranty on all new and used vehicles, production powertrain components and systems and energy storage products we sell. In addition, we also provide a warranty on the installation and components of the solar energy systems we sell for periods typically between 10 to 30 years. We accrue a warranty reserve for the products sold by us, which includes our best estimate of the projected costs to repair or replace items under warranties and recalls when identified. These estimates are based on actual claims incurred to date and an estimate of the nature, frequency and costs of future claims. These estimates are inherently uncertain given our relatively short history of sales, and changes to our historical or projected warranty experience may cause material changes to the warranty reserve in the future. The warranty reserve does not include projected warranty costs associated with our vehicles subject to lease accounting and our solar energy systems under lease contracts or PPAs, as the costs to repair these warranty claims are expensed as incurred. The portion of the warranty reserve expected to be incurred within the next 12 months is included within accrued liabilities and other while the remaining balance is included within other long-term liabilities on the consolidated balance sheet. Due to the adoption of the new revenue standard, automotive sales with resale value guarantees that were previously recorded within operating lease assets require a corresponding warranty accrual, which is included in the table below. Warranty expense is recorded as a component of cost of revenues in the consolidated statements of operations. Accrued warranty activity consisted of the following (in thousands):

Year Ended December 31,
201820172016
Accrued warranty—beginning of period$401,790$266,655$180,754
Assumed warranty liability from acquisition—4,73731,366
Warranty costs incurred(209,124)(122,510)(79,147)
Net changes in liability for pre-existing warranties, including expirations and foreign exchange impact(26,294)4,342(20,084)
Additional warranty accrued from adoption of the new revenue standard37,139——
Provision for warranty544,315248,566153,766
Accrued warranty—end of period$747,826$401,790$266,655

For the years ended December 31, 2018, 2017, and 2016, warranty costs incurred for vehicles accounted for as operating leases or collateralized debt arrangements were $21.9 million, $35.5 million and $19.0 million, respectively.

Solar Energy System Performance Guarantees

We guarantee a specified minimum solar energy production output for certain solar energy systems leased or sold to customers, generally for a term of up to 30 years. We monitor the solar energy systems to ensure that these outputs are being achieved. We evaluate if any amounts are due to our customers and make any payments periodically as specified in the customer agreements. As of December 31, 2018 and 2017, we had recognized a liability of $7.5 million and $6.3 million, respectively, within accrued liabilities and other on the consolidated balance sheets, related to these guarantees based on our assessment of the exposures.

Solar Renewable Energy Credits

We account for solar renewable energy credits (“SRECs”) when they are purchased by us or sold to third-parties. For SRECs generated by solar energy systems owned by us and minted by government agencies, we do not recognize any specifically identifiable costs as there are no specific incremental costs incurred to generate the SRECs. For SRECs purchased by us, we record these SRECs at their cost, subject to impairment testing. We recognize revenue from the sale of an SREC when the SREC is transferred to the buyer, and the cost of the SREC, if any, is then recorded to cost of revenue.

Deferred Investment Tax Credit Revenue

We have solar energy systems that are eligible for ITCs that accrue to eligible property under the Internal Revenue Code (“IRC”). Under Section 50(d)(5) of the IRC and the related regulations, a lessor of qualifying property may elect to treat the lessee as the owner of such property for the purposes of claiming the ITCs associated with such property. These regulations enable the ITCs to be separated from the ownership of the property and allow the transfer of the ITCs. Under our lease pass-through fund arrangements, we can make a tax election to pass-through the ITCs to the investors, who are the legal lessee of the property. Therefore, we are able to monetize these ITCs to the investors who can utilize them in return for cash payments. We consider the monetization of ITCs to constitute one of the key elements of realizing the value associated with solar energy systems. Consequently, we consider the proceeds from the monetization of ITCs to be a component of revenue generated from solar energy systems.

In accordance with the relevant FASB guidance, we recognize revenue from the monetization of ITCs when (1) persuasive evidence of an arrangement exists, (2) delivery has occurred or services have been rendered, (3) the sales price is fixed or determinable and (4) collection of the related receivable is reasonably assured. An ITC is subject to recapture under the IRC if the underlying solar energy system either ceases to be a qualifying property or undergoes a change in ownership within five years of its placed-in-service date; the recapture amount decreases on each anniversary of the placed-in-service date. Since we have an obligation to ensure that the solar energy system is in-service and operational for a term of five years in order to avoid any recapture of the ITC, we recognize revenue as the recapture amount decreases, assuming the other revenue recognition criteria above have been met. As a result, the monetized ITC is initially recorded as deferred revenue on the consolidated balance sheets, and subsequently, one-fifth of the monetized ITC is recognized as energy generation and storage revenue on the consolidated statement of operations on each anniversary of the solar energy system’s placed-in-service date over five years. As discussed in the Revenue Recognition section above, following the adoption of the new revenue standard on January 1, 2018, we no longer defer the monetized ITC as deferred revenue outstanding and have reclassified all ITC deferred revenue as of December 31, 2017 to our opening accumulated deficit.

We indemnify the investors for any recapture of ITCs due to our non-compliance. We have concluded that the likelihood of a recapture event is remote, and consequently, we have not recognized a liability for this indemnification on the consolidated balance sheets.

Nevada Tax Incentives

We have entered into agreements with the State of Nevada and Storey County in Nevada that provide abatements for sales, use, real property, personal property and employer excise taxes, discounts to the base tariff energy rates and transferable tax credits. These incentives are available for the applicable periods beginning on October 17, 2014 and ending on either June 30, 2024 or June 30, 2034 (depending on the incentive). Under these agreements, we were eligible for a maximum of $195.0 million of transferable tax credits, subject to capital investments by us and our partners for Gigafactory 1 of at least $3.50 billion, which we exceeded during 2017, and specified hiring targets for Gigafactory 1, which we exceeded during 2018. We record these credits as earned when we have evidence there is a market for their sale. Credits are applied as a cost offset to either employee expense or to capital assets, depending on the source of the credits. Credits earned from employee hires or capital spending by our partners at Gigafactory 1 are recorded as a reduction to operating expenses. As of December 31, 2018 and 2017, we had earned $195.0 million and $163.0 million of transferable tax credits under these agreements, respectively.

Recent Accounting Pronouncements

In May 2014, the Financial Accounting Standards Board (“FASB”) issued ASU No. 2014-09, Revenue from Contracts with Customers, to replace the existing revenue recognition criteria for contracts with customers. In August 2015, the FASB issued ASU No. 2015-14, Deferral of the Effective Date, to defer the effective date of ASU No. 2014-09 to interim and annual periods beginning after December 15, 2017. Subsequently, the FASB issued ASU No. 2016-08, Principal versus Agent Considerations, ASU No. 2016-10, Identifying Performance Obligations and Licensing, ASU No. 2016-11, Rescission of SEC Guidance Because of Accounting Standards Updates 2014-09 and 2014-16 Pursuant to Staff Announcements at the March 3, 2016 EITF Meeting, ASU No. 2016-12, Narrow-Scope Improvements and Practical Expedients, and ASU No. 2016-20, Technical Corrections and Improvements, to clarify and amend the guidance in ASU No. 2014-09. We adopted the ASUs on January 1, 2018 on a modified retrospective basis through a cumulative adjustment to accumulated deficit. The adoption of the ASUs changed the timing of revenue recognition to be at delivery for certain vehicle sales to customers or leasing partners with a resale value guarantee, which now qualify to be accounted for as sales with a right of return as opposed to the prior accounting as operating leases or collateralized lease borrowings. Upon adoption of the ASUs, we recorded a decrease to our beginning accumulated deficit of $623.2 million including income tax effects, which were immaterial. Refer to the Revenue Recognition section above for details.

In February 2016, the FASB issued ASU No. 2016-02, Leases, to require lessees to recognize all leases, with limited exceptions, on the balance sheet, while recognition on the statement of operations will remain similar to current lease accounting. The ASU also eliminates real estate-specific provisions and modifies certain aspects of lessor accounting. Subsequently, the FASB issued ASU No. 2018-10, Codification Improvements to Topic 842, ASU No. 2018-11, Targeted Improvements, and ASU No. 2018-20, Narrow-Scope Improvements for Lessors, to clarify and amend the guidance in ASU No. 2016-02. The ASUs are effective for interim and annual periods beginning after December 15, 2018, with early adoption permitted. We will adopt the ASUs on January 1, 2019 on a modified retrospective basis through a cumulative adjustment to our beginning accumulated deficit balance. Prior comparative periods will not be restated under this method, and we will adopt all available practical expedients, as applicable. Further, solar leases that commence on or after January 1, 2019, where we are the lessor and which are currently accounted for as leases, will no longer meet the definition of a lease. Instead, solar leases commencing on or after January 1, 2019 will be accounted for under ASC 606. In addition to recognizing operating leases that were previously not recognized on the consolidated balance sheet, we also expect most of our build-to-suit leases to be de-recognized with a net decrease of approximately of $100.0 million to our beginning accumulated deficit before income tax effects, as our build-to-suit leases will no longer qualify for build-to-suit accounting and will instead be recognized as operating leases or finance leases. Upon adoption, our consolidated balance sheet will include an overall reduction in assets in the range of approximately $400.0 million to $500.0 million and a reduction in liabilities in the range of approximately $500.0 million to $600.0 million. The ASUs are not expected to have a material impact on the consolidated statement of operations or the consolidated statement of cash flows.

In June 2016, the FASB issued ASU No. 2016-13, Measurement of Credit Losses on Financial Instruments, to require financial assets carried at amortized cost to be presented at the net amount expected to be collected based on historical experience, current conditions and forecasts. Subsequently, the FASB issued ASU No. 2018-19, Codification Improvements to Topic 326, to clarify that receivables arising from operating leases are within the scope of lease accounting standards. The ASUs are effective for interim and annual periods beginning after December 15, 2019, with early adoption permitted. Adoption of the ASUs is modified retrospective. We are currently obtaining an understanding of the ASUs and plan to adopt them on January 1, 2020.

In August 2016, the FASB issued ASU No. 2016-15, Classification of Certain Cash Receipts and Cash Payments, to reduce the diversity in practice with respect to the classification of certain cash receipts and cash payments on the statement of cash flows. The ASU is effective for interim and annual periods beginning after December 15, 2017. Adoption of the ASU is retrospective. We adopted the ASU on January 1, 2018, which did not have a material impact on the consolidated financial statements.

In November 2016, the FASB issued ASU No. 2016-18, Statement of Cash Flows: Restricted Cash, which requires entities to present the aggregate changes in cash, cash equivalents, restricted cash and restricted cash equivalents in the statement of cash flows. As a result, the statement of cash flows now presents restricted cash and restricted cash equivalents as a part of the beginning and ending balances of cash and cash equivalents. The ASU is effective for interim and annual periods beginning after December 15, 2017. Adoption of the ASU is retrospective. We adopted the ASU on January 1, 2018, which resulted in restricted cash being combined with unrestricted cash reconciling beginning and ending balances. Refer to the Restricted Cash section for the reconciliation.

In January 2017, the FASB issued ASU No. 2017-01, Clarifying the Definition of a Business, to clarify which transactions should be accounted for as acquisitions (or disposals) of assets or businesses. The ASU is effective for interim and annual periods beginning after December 15, 2017. Adoption of the ASU is prospective. We adopted the ASU on January 1, 2018, which did not have a material impact on the consolidated financial statements.

In January 2017, the FASB issued ASU No. 2017-04, Simplifying the Test for Goodwill Impairment, to simplify the test for goodwill impairment by removing Step 2. An entity will, therefore, perform the goodwill impairment test by comparing the fair value of a reporting unit with its carrying amount and recognizing an impairment charge for the amount by which the carrying amount exceeds the fair value, not to exceed the total amount of goodwill allocated to the reporting unit. An entity still has the option to perform a qualitative assessment to determine if the quantitative impairment test is necessary. The ASU is effective for interim and annual periods beginning after December 15, 2019, with early adoption permitted. Adoption of the ASU is prospective. We have not yet selected an adoption date, though the ASU is currently not expected to have a material impact on the consolidated financial statements.

In February 2017, the FASB issued ASU No. 2017-05, Gains and Losses from the Recognition of Nonfinancial Assets, to clarify the scope of asset derecognition guidance and accounting for partial sales of nonfinancial assets. The ASU is effective for interim and annual periods beginning after December 15, 2017. We adopted the ASU on January 1, 2018 on a modified retrospective basis through a cumulative adjustment to accumulated deficit. Upon adoption of the ASU, we recorded a $9.4 million decrease to our beginning accumulated deficit balance.

In May 2017, the FASB issued ASU No. 2017-09, Scope of Modification Accounting, to provide guidance on which changes to the terms or conditions of a share-based payment award require an entity to apply modification accounting. The ASU is effective for interim and annual periods beginning after December 15, 2017. Adoption of the ASU is prospective. We adopted the ASU on January 1, 2018, which did not have a material impact on the consolidated financial statements.

In August 2017, the FASB issued ASU No. 2017-12, Targeted Improvements to Accounting for Hedging Activities, to simplify the application of current hedge accounting guidance. The ASU expands and refines hedge accounting for both non-financial and financial risk components and aligns the recognition and presentation of the effects of the hedging instrument and the hedged item in the financial statements. The ASU is effective for interim and annual periods beginning after December 15, 2018, with early adoption permitted. Adoption of the ASU will be prospective for us. We plan to adopt the ASU on January 1, 2019, and the ASU is currently not expected to have a material impact on the consolidated financial statements.

In January 2018, the FASB issued ASU No. 2018-01, Land Easement Practical Expedient Transition to Topic 842, to permit an entity to elect a practical expedient to not re-evaluate land easements that existed or expired before the entity’s adoption of ASU No. 2016-02, Leases, and that are not currently accounted for as leases. The ASU is effective for the same periods as ASU No. 2016-02, and the ASU will not have a material impact on the consolidated financial statements.

In August 2018, the FASB issued ASU No. 2018-15, Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement that Is a Service Contract. The ASU aligns the requirements for capitalizing implementation costs incurred in a hosting arrangement that is a service contract with the requirements for capitalizing implementation costs incurred to develop or obtain internal-use software (and hosting arrangements that include an internal-use software license). The ASU is effective for interim and annual periods beginning after December 15, 2019, with early adoption permitted. Adoption of the ASU is either retrospective or prospective. We are currently obtaining an understanding of the ASU and plan to adopt the ASU prospectively on January 1, 2020.

Note 3 – Business Combinations

Grohmann Acquisition

On January 3, 2017, we completed our acquisition of Grohmann Engineering GmbH (now Tesla Grohmann Automation GmbH or “Grohmann”), which specializes in the design, development and sale of automated manufacturing systems, for $109.5 million in cash. We acquired Grohmann to improve the speed and efficiency of our manufacturing processes.

At the time of acquisition, we entered into an incentive compensation arrangement for up to a maximum of $25.8 million of payments contingent upon continued service with us for 36 months after the acquisition date. Such payments would have been accounted for as compensation expense in the periods earned. However, during the three months ended March 31, 2017, we terminated the incentive compensation arrangement and accelerated the payments thereunder. As a result, we recorded the entire $25.8 million as compensation expense in the three months ended March 31, 2017, which was included within selling, general and administrative expense in the consolidated statements of operations.

Fair Value of Assets Acquired and Liabilities Assumed

Fair value estimates are based on a complex series of judgments about future events and uncertainties and rely heavily on estimates and assumptions. The judgments used to determine the estimated fair value assigned to each class of assets acquired and liabilities assumed, as well as asset lives and the expected future cash flows and related discount rates, can materiality impact our results of operations. Significant inputs used included the amount of cash flows, the expected period of the cash flows and the discount rates. During the fourth quarter of 2017, we finalized our estimate of the acquisition date fair values of the assets acquired and the liabilities assumed. Prior to finalization, there were no changes to the fair values of the assets acquired and the liabilities assumed.

The allocation of the purchase consideration was based on management’s estimate of the acquisition date fair values of the assets acquired and the liabilities assumed, as follows (in thousands):

Assets acquired:
Cash and cash equivalents$334
Accounts receivable42,947
Inventory10,031
Property, plant and equipment44,030
Intangible assets21,723
Prepaid expenses and other assets, current and non-current1,998
Total assets acquired121,063
Liabilities assumed:
Accounts payable(19,975)
Accrued liabilities(12,403)
Debt and capital leases, current and non-current(9,220)
Other long-term liabilities(10,049)
Total liabilities assumed(51,647)
Net assets acquired69,416
Goodwill40,065
Total purchase price$109,481

Goodwill represented the excess of the purchase price over the fair value of the net assets acquired and was primarily attributable to the expected synergies from potential monetization opportunities and from integrating Grohmann’s technology into our automotive business as well as the acquired talent. Goodwill is not deductible for U.S. income tax purposes and is not amortized. Rather, we assess goodwill for impairment annually in the fourth quarter, or more frequently if events or changes in circumstances indicate that it might be impaired, by comparing its carrying value to the reporting unit’s fair value.

Identifiable Intangible Assets Acquired

The determination of the fair values of the identified intangible assets and their respective useful lives as of the acquisition date was as follows (in thousands, except for useful lives):

Fair ValueUseful Life (in years)
Developed technology$12,52810
Software3,3413
Customer relations3,2366
Trade name1,7757
Other8432
Total intangible assets$21,723

Grohmann’s results of operations since the acquisition date have been included within the automotive segment in the consolidated statements of operations. Standalone and pro forma results of operations have not been presented because they were not material to the consolidated financial statements.

SolarCity Acquisition

On November 21, 2016 (the “Acquisition Date”), we completed our acquisition of SolarCity. Pursuant to the Agreement and Plan of Merger (the “Merger Agreement”), each issued and outstanding share of SolarCity common stock was converted into 0.110 (the “Exchange Ratio”) shares of our common stock. In addition, SolarCity’s stock option awards and restricted stock unit awards were assumed by us and converted into corresponding equity awards in respect of our common stock based on the Exchange Ratio, with the awards retaining the same vesting and other terms and conditions as in effect immediately prior to the acquisition.

Fair Value of Purchase Consideration

The Acquisition Date fair value of the purchase consideration was as follows (in thousands, except for share and per share amounts):

Total fair value of Tesla common stock issued (11,124,497 shares issued at $185.04 per share)$2,058,477
Fair value of replacement Tesla stock options and restricted stock units for vested SolarCity awards87,500
Total purchase price$2,145,977

Furthermore, the assumed unvested SolarCity awards of $95.9 million are recognized as stock-based compensation expense over the remaining requisite service period. Per ASC 805, the replacement of stock options or other share-based payment awards in conjunction with a business combination represents a modification of share-based payment awards that must be accounted for in accordance with ASC 718, Stock Compensation. As a result of our issuance of replacement awards, a portion of the fair-value-based measure of the replacement awards is included in the purchase consideration. To determine the portion of the replacement awards that is part of the purchase consideration, we measured the fair value of both the replacement awards and the historical awards as of the Acquisition Date. The fair value of the replacement awards, whether vested or unvested, was included in the purchase consideration to the extent that pre-acquisition services were rendered.

Transaction costs of $21.7 million were expensed as incurred to selling, general and administrative expense on the consolidated statements of operations.

Fair Value of Assets Acquired and Liabilities Assumed

Fair value estimates are based on a complex series of judgments about future events and uncertainties and rely heavily on estimates and assumptions. The judgments used to determine the estimated fair value assigned to each class of assets acquired and liabilities assumed, as well as asset lives and the expected future cash flows and related discount rates, can materiality impact our results of operations. Specifically, we utilized a discounted cash flow model to value the acquired solar energy systems, leased and to be leased, as well as the noncontrolling interests in subsidiaries. Significant inputs used included the amount of cash flows, the expected period of the cash flows and the discount rates.

The allocation of the purchase consideration was based on management’s estimate of the Acquisition Date fair values of the assets acquired and the liabilities assumed, as follows (in thousands):

Assets acquired:
Cash and cash equivalents$213,523
Accounts receivable74,619
Inventory191,878
Solar energy systems, leased and to be leased5,781,496
Property, plant and equipment1,056,312
MyPower customer notes receivable, net of current portion498,141
Restricted cash129,196
Intangible assets356,510
Prepaid expenses and other assets, current and non-current199,864
Total assets acquired8,501,539
Liabilities assumed:
Accounts payable(230,078)
Accrued liabilities(284,765)
Debt and capital leases, current and non-current(3,403,840)
Financing obligations(121,290)
Deferred revenue, current and non-current(271,128)
Other liabilities(950,423)
Total liabilities assumed(5,261,524)
Net assets acquired3,240,015
Noncontrolling interests redeemable and non-redeemable(1,066,517)
Capped call options associated with 2014 convertible notes3,460
Total net assets acquired2,176,958
Gain on acquisition(30,981)
Total purchase price$2,145,977

Gain on Acquisition

Since the fair value of the net assets acquired was greater than the purchase price, we recognized a gain on acquisition of $88.7 million in the fourth quarter of 2016, which was recorded within other income (expense), net, on the consolidated statements of operations.

During the fourth quarter of 2017, we finalized our estimate of the Acquisition Date fair values of the assets acquired and the liabilities assumed. Prior to finalization, during the year ended December 31, 2017, we recorded an $11.6 million measurement period adjustment to MyPower customer notes receivable, net of current portion, and a $46.2 million measurement period adjustment to accrued liabilities. The measurement period adjustments were recorded as losses to other income (expense), net, in the consolidated statement of operations and reduced the gain on acquisition initially recognized in the fourth quarter of 2016.

Identifiable Intangible Assets Acquired

The determination of the fair values of the identified intangible assets and their respective useful lives as of the Acquisition Date was as follows (in thousands, except for useful lives):

Fair ValueUseful Life (in years)
Developed technology$113,3617
Trade name (1)43,5003
Favorable contracts and leases, net112,81715
IPR&D86,832Not applicable
Total intangible assets$356,510
(1)Refer to Note 4, Intangible Assets, for discussion over changes to the assumptions of the useful life of this asset post acquisition.

Unaudited Pro Forma Financial Information

The consolidated financial statements for the year ended December 31, 2016 include SolarCity’s results of operations from the Acquisition Date through December 31, 2016. Net revenues and operating loss attributable to SolarCity during this period and included in the consolidated statement of operations were $84.1 million and $68.2 million, respectively.

The following unaudited pro forma financial information for the year ended December 31, 2016 gives effect to our acquisition of SolarCity as if the acquisition had occurred on January 1, 2015 (in thousands, except per share data):

Revenue$7,536,876
Net loss attributable to common stockholders(702,868)
Net loss per share of common stock, basic and diluted$(4.56)
Weighted-average shares used in computing net loss per share of common stock, basic and diluted154,090

The unaudited pro forma financial information includes adjustments for the depreciation of solar energy systems, leased and to be leased, the intangible assets acquired, the effect of the acquisition on deferred revenue and noncontrolling interests and the transaction costs related to the acquisition. The unaudited pro forma financial information is presented for illustrative purposes only and is not necessarily indicative of the results of operations of future periods. The unaudited pro forma financial information does not give effect to the potential impact of current financial conditions, regulatory matters, synergies, operating efficiencies or cost savings that might be associated with the acquisition. Consequently, actual results could differ from the unaudited pro forma financial information presented.

Note 4 – Intangible Assets

Information regarding our acquired intangible assets was as follows (in thousands):

December 31, 2018December 31, 2017
Gross Carrying AmountAccumulated AmortizationOtherNet Carrying AmountGross Carrying AmountAccumulated AmortizationOtherNet Carrying Amount
Finite-lived intangible assets:
Developed technology$152,431$(40,705)$1,205$112,931$125,889$(19,317)$1,847$108,419
Trade names45,275(44,056)1701,38945,275(10,924)26134,612
Favorable contracts and leases, net112,817(16,409)—96,408112,817(8,639)—104,178
Other35,559(11,540)71924,73834,099(7,775)1,13727,461
Total finite- lived intangible assets346,082(112,710)2,094235,466318,080(46,655)3,245274,670
Indefinite-lived intangible assets:
IPR&D60,290—(13,264)47,02686,832——86,832
Total indefinite- lived intangible assets60,290—(13,264)47,02686,832——86,832
Total intangible assets$406,372$(112,710)$(11,170)$282,492$404,912$(46,655)$3,245$361,502

The in-process research and development (“IPR&D”), which we acquired from SolarCity, is accounted for as an indefinite-lived asset until the completion or abandonment of the associated research and development efforts. If the research and development efforts are successfully completed and commercial feasibility is reached, the IPR&D would be amortized over its then estimated useful life. If the research and development efforts are not completed or are abandoned, the IPR&D might be impaired. The fair value of the IPR&D was estimated using the replacement cost method under the cost approach, based on the historical acquisition costs and expenses of the technology adjusted for estimated developer’s profit, opportunity cost and obsolescence factor. During the year ended December 31, 2018, we concluded that a portion of the IPR&D was not commercially feasible, and consequently recognized an abandonment loss of $13.3 million in restructuring and other expenses in the consolidated statements of operations. Additionally, $26.5 million of IPR&D was put into production during the year ended December 31, 2018, and we expect to complete the remaining research and development efforts in the first half of 2019. The nature of the research and development efforts consists principally of planning, designing and testing the technology for viability in manufacturing solar cells and modules. If commercial feasibility is not achieved for the remaining IPR&D, we would likely look to other alternative technologies.

The costs associated with one of the trade names acquired by us has been fully amortized as of December 31, 2018 as we phased out the use of such trade name in our sales and marketing efforts.

Total future amortization expense for intangible assets was estimated as follows (in thousands):

December 31, 2018
2019$34,637
202032,729
202132,729
202232,729
202326,537
Thereafter76,105
Total$235,466

Note 5 – Fair Value of Financial Instruments

ASC 820, Fair Value Measurements, states that fair value is an exit price, representing the amount that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants. As such, fair value is a market-based measurement that should be determined based on assumptions that market participants would use in pricing an asset or a liability. The three-tiered fair value hierarchy, which prioritizes which inputs should be used in measuring fair value, is comprised of: (Level I) observable inputs such as quoted prices in active markets; (Level II) inputs other than quoted prices in active markets that are observable either directly or indirectly and (Level III) unobservable inputs for which there is little or no market data. The fair value hierarchy requires the use of observable market data when available in determining fair value. Our assets and liabilities that were measured at fair value on a recurring basis were as follows (in thousands):

December 31, 2018December 31, 2017
Fair ValueLevel ILevel IILevel IIIFair ValueLevel ILevel IILevel III
Money market funds (cash and cash equivalents & restricted cash)$1,812,8281,812,828$—$—$2,163,459$2,163,459$—$—
Interest rate swaps, net11,070—11,070—59—59—
Total$1,823,898$1,812,828$11,070$—$2,163,518$2,163,459$59$—

All of our money market funds were classified within Level I of the fair value hierarchy because they were valued using quoted prices in active markets. Our interest rate swaps were classified within Level II of the fair value hierarchy because they were valued using alternative pricing sources or models that utilized market observable inputs, including current and forward interest rates. During the year ended December 31, 2018, there were no transfers between the levels of the fair value hierarchy.

Interest Rate Swaps

We enter into fixed-for-floating interest rate swap agreements to swap variable interest payments on certain debt for fixed interest payments, as required by certain of our lenders. We do not designate our interest rate swaps as hedging instruments. Accordingly, our interest rate swaps are recorded at fair value on the consolidated balance sheets within other assets or other long-term liabilities, with any changes in their fair values recognized as other income (expense), net, in the consolidated statements of operations and with any cash flows recognized as investing activities in the consolidated statements of cash flows. Our interest rate swaps outstanding were as follows (in thousands):

December 31, 2018December 31, 2017
Aggregate Notional AmountGross Asset at Fair ValueGross Liability at Fair ValueAggregate Notional AmountGross Asset at Fair ValueGross Liability at Fair Value
Interest rate swaps$800,293$12,159$1,089$496,544$5,304$5,245

For the years ended December 31, 2018, 2017 and 2016, our interest rate swaps activity was as follows (in thousands):

Year Ended December 31,
201820172016
Gross gains$21,558$7,192$6,995
Gross losses$11,670$13,082$—

Disclosure of Fair Values

Our financial instruments that are not re-measured at fair value include accounts receivable, MyPower customer notes receivable, rebates receivable, accounts payable, accrued liabilities, customer deposits, the participation interest and debt. The carrying values of these financial instruments other than the participation interest, the convertible senior notes, the 5.30% Senior Notes due in 2025, the solar asset-backed notes, the solar loan-backed notes and the automotive asset-backed notes approximate their fair values.

We estimate the fair value of the convertible senior notes and the 5.30% Senior Notes due in 2025 using commonly accepted valuation methodologies and market-based risk measurements that are indirectly observable, such as credit risk (Level II). In addition, we estimate the fair values of the participation interest, the solar asset-backed notes, the solar loan-backed notes and the automotive asset-backed notes based on rates currently offered for instruments with similar maturities and terms (Level III). The following table presents the estimated fair values and the carrying values (in thousands):

December 31, 2018December 31, 2017
Carrying ValueFair ValueCarrying ValueFair Value
Convertible senior notes$3,660,316$4,346,642$3,722,673$4,488,651
Senior notes$1,778,756$1,575,000$1,775,550$1,732,500
Participation interest$18,946$18,431$17,545$17,042
Solar asset-backed notes$1,183,675$1,206,755$880,415$898,145
Solar loan-backed notes$203,052$211,788$236,844$248,149
Automotive asset-backed notes$1,172,160$1,179,910$—$—

Note 6 – Inventory

Our inventory consisted of the following (in thousands):

December 31,December 31,
20182017
Raw materials$931,828$821,396
Work in process296,991243,181
Finished goods1,581,7631,013,909
Service parts302,864185,051
Total$3,113,446$2,263,537

Finished goods inventory included vehicles in transit to fulfill customer orders, new vehicles available for immediate sale at our retail and service center locations, used vehicles and energy storage products. During the year ended December 31, 2018, we made the decision to utilize some of our fleet cars as service loaners on a long-term basis. As a result, we reclassified $121.2 million of finished goods inventory to property, plant and equipment.

For solar energy systems, leased and to be leased, we commence transferring component parts from inventory to construction in progress, a component of solar energy systems, leased and to be leased, once a lease contract with a customer has been executed and installation has been initiated. Additional costs incurred on the leased systems, including labor and overhead, are recorded within construction in progress.

We write-down inventory for any excess or obsolete inventories or when we believe that the net realizable value of inventories is less than the carrying value. During the years ended December 31, 2018, 2017 and 2016, we recorded write-downs of $78.3 million, $124.1 million and $52.8 million, respectively, in cost of revenues.

Note 7 – Solar Energy Systems, Leased and To Be Leased, Net

Solar energy systems, leased and to be leased, net, consisted of the following (in thousands):

December 31,December 31,
20182017
Solar energy systems leased to customers$6,430,729$6,009,977
Initial direct costs related to customer solar energy system lease acquisition costs99,38074,709
6,530,1096,084,686
Less: accumulated depreciation and amortization(495,518)(220,110)
6,034,5915,864,576
Solar energy systems under construction67,773243,847
Solar energy systems to be leased to customers169,032239,067
Solar energy systems, leased and to be leased – net (1)$6,271,396$6,347,490
(1)As of December 31, 2018 and 2017, solar energy systems, leased and to be leased, included $36.0 million of capital leased assets with accumulated depreciation and amortization of $3.8 million and $1.9 million, respectively.

Note 8 – Property, Plant and Equipment

Our property, plant and equipment, net, consisted of the following (in thousands):

December 31,December 31,
20182017
Machinery, equipment, vehicles and office furniture$6,328,966$4,251,711
Tooling1,397,5141,255,952
Leasehold improvements960,971789,751
Land and buildings4,047,0062,517,247
Computer equipment, hardware and software487,421395,067
Construction in progress807,2972,541,588
14,029,17511,751,316
Less: Accumulated depreciation(2,699,098)(1,723,794)
Total$11,330,077$10,027,522

Construction in progress is primarily comprised of tooling and equipment related to the manufacturing of our vehicles and a portion of Gigafactory 1 construction. Completed assets are transferred to their respective asset classes, and depreciation begins when an asset is ready for its intended use. Construction in progress also includes certain build-to-suit lease costs incurred at our Buffalo manufacturing facility, referred to as Gigafactory 2. During the year ended December 31, 2018, we had significant transfers from construction in progress to the various property, plant and equipment asset classes as assets were placed in service primarily at Gigafactory 1 and Gigafactory 2. Interest on outstanding debt is capitalized during periods of significant capital asset construction and amortized over the useful lives of the related assets. During the years ended December 31, 2018 and 2017, we capitalized $54.9 million and $124.9 million, respectively, of interest.

As of December 31, 2018 and 2017, the table above included $1.69 billion and $1.63 billion, respectively, of gross build-to-suit lease assets. As of December 31, 2018 and 2017, the corresponding financing liabilities of $81.7 million and $14.9 million, respectively, were recorded in accrued liabilities and $1.66 billion and $1.67 billion, respectively, were recorded in other long-term liabilities on the consolidated balance sheets.

Depreciation expense during the years ended December 31, 2018, 2017 and 2016 was $1.11 billion, $769.3 million and $477.3 million, respectively. Gross property and equipment under capital leases as of December 31, 2018 and 2017 was $1.52 billion and $688.3 million, respectively. Accumulated depreciation on property and equipment under capital leases as of these dates was $231.6 million and $100.6 million, respectively.

Panasonic has partnered with us on Gigafactory 1 with investments in the production equipment that it uses to manufacture and supply us with battery cells. Under our arrangement with Panasonic, we plan to purchase the full output from their production equipment at negotiated prices. As these terms convey to us the right to use, as defined in ASC 840, Leases, their production equipment, we consider them to be leased assets when production commences. This results in us recording the cost of their production equipment within property, plant and equipment, net, on the consolidated balance sheets with a corresponding liability recorded to long-term debt and capital leases. For all suppliers and partners for which we plan to purchase the full output from their production equipment located at Gigafactory 1, we have applied similar accounting. As of December 31, 2018 and 2017, we had cumulatively capitalized costs of $1.24 billion and $473.3 million, respectively, on the consolidated balance sheets in relation to the production equipment under our Panasonic arrangement. We had cumulatively capitalized total costs for Gigafactory 1, including costs under our Panasonic arrangement, of $4.62 billion and $3.15 billion as of December 31, 2018 and 2017, respectively.

Note 9 – Non-cancellable Operating Lease Payments Receivable

As of December 31, 2018, future minimum lease payments to be received from customers under non-cancellable operating leases for each of the next five years and thereafter were as follows (in thousands):

2019$501,625
2020418,299
2021270,838
2022186,807
2023188,809
Thereafter2,469,732
Total$4,036,110

The above table does not include vehicle sales to customers or leasing partners with a resale value guarantee as the cash payments were received upfront. In addition, we assumed through our acquisition of SolarCity and will continue to enter into PPAs with our customers that are accounted for as leases. These customers are charged solely based on actual power produced by the installed solar energy system at a predefined rate per kilowatt-hour of power produced. The future payments from such arrangements are not included in the above table as they are a function of the power generated by the related solar energy systems in the future. Furthermore, the above table does not include performance-based incentives receivable from various utility companies. The amount of contingent rentals recognized as revenue for the years presented were not material.

Note 10 - Accrued Liabilities and Other

As of December 31, 2018 and 2017, accrued liabilities and other current liabilities consisted of the following (in thousands):

December 31,December 31,
20182017
Accrued purchases$394,216$753,408
Payroll and related costs448,836378,284
Taxes payable348,663185,807
Financing obligation, current portion61,76167,313
Accrued warranty200,701125,502
Sales return reserve, current portion107,800—
Accrued interest77,91775,572
Build-to-suit lease liability, current portion81,73914,915
Other current liabilities372,620130,565
Total$2,094,253$1,731,366

Taxes payable included value added tax, sales tax, property tax, use tax and income tax payables.

Accrued purchases primarily reflected receipts of goods and services that we had not been invoiced yet. As we are invoiced for these goods and services, this balance will reduce and accounts payable will increase.

Due to the adoption of the new revenue standard, automotive sales with resale value guarantees that are now accounted for as sales with a right of return require a corresponding sales return reserve, which is included in accrued liabilities and other when the reserve is current and other long-term liabilities when the reserve is non-current on the consolidated balance sheets. For automotive sales without a resale value guarantee, we record a reserve against revenue for the estimated variable consideration related to future product returns in accrued liabilities and other on the consolidated balance sheets. See Note 2, Summary of Significant Accounting Policies for details.

Note 11 – Other Long-Term Liabilities

Other long-term liabilities consisted of the following, net of current portion (in thousands):

December 31,December 31,
20182017
Accrued warranty reserve$547,125$276,289
Build-to-suit lease liability1,662,0171,665,768
Deferred rent expense59,25246,820
Financing obligation50,38367,929
Liability for receipts from an investor—29,713
Sales return reserve84,143—
Other noncurrent liabilities307,483356,451
Total other long-term liabilities$2,710,403$2,442,970

The liability for receipts from an investor represents the amounts received from the investor under a lease pass-through fund arrangement for the monetization of ITCs for solar energy systems not yet placed in service. Due to the adoption of the new revenue standard, automotive sales with resale value guarantees that are now accounted for as sales with a right of return require a corresponding sales return reserve, which is included in accrued liabilities and other when the reserve is current and other long-term liabilities when the reserve is non-current on the consolidated balance sheets.

Note 12 – Customer Deposits

Customer deposits primarily consisted of cash payments from customers at the time they place an order or reservation for a vehicle or an energy product and any additional payments up to the point of delivery or the completion of installation, including the fair values of any customer trade-in vehicles that are applicable toward a new vehicle purchase. Customer deposit amounts and timing vary depending on the vehicle model, the energy product and the country of delivery. In the case of a vehicle, customer deposits are fully refundable up to the point the vehicle is placed into the production cycle. In the case of an energy generation or storage product, customer deposits are fully refundable prior to the entry into a purchase agreement or in certain cases for a limited time thereafter (in accordance with applicable laws). Customer deposits are included in current liabilities until refunded or until they are applied towards the customer’s purchase balance. As of December 31, 2018 and December 31, 2017, we held $792.6 million and $853.9 million, respectively, in customer deposits.

Due to the adoption of the new revenue standard, customer deposits now include prepayments on contracts that can be cancelled without significant penalties, such as vehicle maintenance plans, which were previously reported as deferred revenue. As a result, the adoption of the new revenue standard increased the customer deposits balance as of December 31, 2018 by $58.4 million as compared to what the balance would have been under ASC 605, Revenue Recognition (see Note 2, Summary of Significant Accounting Policies).

Note 13 –Long-Term Debt Obligations

The following is a summary of our debt as of December 31, 2018 (in thousands):

UnpaidUnused
PrincipalNet Carrying ValueCommittedContractualContractual
BalanceCurrentLong-TermAmount*Interest RatesMaturity Date
Recourse debt:
0.25% Convertible Senior Notes due in 2019 ("2019 Notes")920,000912,625——0.25%March 2019
1.25% Convertible Senior Notes due in 2021 ("2021 Notes")1,380,000—1,243,496—1.25%March 2021
2.375% Convertible Senior Notes due in 2022 ("2022 Notes")977,500—871,326—2.375%March 2022
5.30% Senior Notes due in 2025 ("2025 Notes")1,800,000—1,778,756—5.30%August 2025
Credit Agreement1,540,000—1,540,000230,9991% plus LIBORJune 2020
Vehicle and other Loans76,2031,20375,000—1.8%-7.6%January 2019-December 2021
1.625% Convertible Senior Notes due in 2019565,992541,070——1.625%November 2019
Zero-Coupon Convertible Senior Notes due in 2020103,000—91,799—0.0%December 2020
Solar Bonds24,72511925,190—2.6%-5.8%January 2019-January 2031
Total recourse debt7,387,4201,455,0175,625,567230,999
Non-recourse debt:
Warehouse Agreements92,00013,60478,3961,008,0003.9%-4.2%September 2020
Canada Credit Facility73,22031,76641,454—3.6%-5.9%November 2022
Term Loan due in 2019180,624180,624——6.1%January 2019
Term Loan due in 2021169,0506,876161,453—6.0%January 2021
Cash equity debt466,83710,911441,472—5.3%-5.8%July 2033- January 2035
Solar asset-backed notes1,214,07128,7611,154,914—4.0%-7.7%September 2024- February 2048
Solar loan-backed notes210,2499,888193,164—4.8%-7.5%September 2048- September 2049
Automotive asset-backed notes1,177,937467,926704,234—2.3%-7.9%December 2019-June 2022
Solar Renewable Energy Credit and other Loans26,74216,6129,83617,6335.1%-7.9%December 2019-July 2021
Total non-recourse debt3,610,730766,9682,784,9231,025,633
Total debt$10,998,150$2,221,985$8,410,490$1,256,632

The following is a summary of our debt as of December 31, 2017 (in thousands):

UnpaidUnused
PrincipalNet Carrying ValueCommittedContractualContractual
BalanceCurrentLong-TermAmount*Interest RatesMaturity Date
Recourse debt:
1.50% Convertible Senior Notes due in 2018 ("2018 Notes")$5,512$5,442$—$—1.50%June 2018
2019 Notes920,000—869,092—0.25%March 2019
2021 Notes1,380,000—1,186,131—1.25%March 2021
2022 Notes977,500—841,973—2.375%March 2022
2025 Notes1,800,000—1,775,550—5.30%August 2025
Credit Agreement1,109,000—1,109,000729,9291% plus LIBORJune 2020
Vehicle and other Loans16,20515,944261—1.8%-7.6%January 2018- September 2019
2.75% Convertible Senior Notes due in 2018230,000222,171——2.75%November 2018
1.625% Convertible Senior Notes due in 2019566,000—511,389—1.625%November 2019
Zero-Coupon Convertible Senior Notes due in 2020103,000—86,475—0.0%December 2020
Related Party Promissory Notes due in February 2018100,000100,000——6.5%February 2018
Solar Bonds32,0167,00824,940—2.6%-5.8%March 2018- January 2031
Total recourse debt7,239,233350,5656,404,811729,929
Non-recourse debt:
Warehouse Agreements673,811195,382477,867426,1893.1%September 2019
Canada Credit Facility86,70831,10655,603—3.6%-5.1%November 2021
Term Loan due in December 2018157,095156,884—19,5344.8%December 2018
Term Loan due in January 2021176,2905,885169,352—4.9%January 2021
Revolving Aggregation Credit Facility161,796—158,733438,2044.1%-4.5%December 2019
Solar Renewable Energy Credit Loan Facility38,57515,85822,774—7.3%July 2021
Cash equity debt482,13312,334454,421—5.3%-5.8%July 2033-January 2035
Solar asset-backed notes907,24123,829856,586—4.0%-7.7%November 2038-February 2048
Solar loan-backed notes244,4988,006228,838—4.8%-7.5%September 2048-September 2049
Total non-recourse debt2,928,147449,2842,424,174883,927
Total debt$10,167,380$799,849$8,828,985$1,613,856
*Unused committed amounts under some of our credit facilities and financing funds are subject to satisfying specified conditions prior to draw-down (such as pledging to our lenders sufficient amounts of qualified receivables, inventories, leased vehicles and our interests in those leases, solar energy systems and the associated customer contracts, our interests in financing funds or various other assets). Upon draw-down of any unused committed amounts, there are no restrictions on use of available funds for general corporate purposes.

Recourse debt refers to debt that is recourse to our general assets. Non-recourse debt refers to debt that is recourse to only specified assets of our subsidiaries. The differences between the unpaid principal balances and the net carrying values are due to convertible senior note conversion features, debt discounts or deferred financing costs. As of December 31, 2018, we were in compliance with all financial debt covenants, which include minimum liquidity and expense-coverage balances and ratios.

2018 Notes, Bond Hedges and Warrant Transactions

In May 2013, we issued $660.0 million in aggregate principal amount of 1.50% Convertible Senior Notes due in June 2018 in a public offering. The net proceeds from the issuance, after deducting transaction costs, were $648.0 million.

Each $1,000 of principal of the 2018 Notes is initially convertible into 8.0306 shares of our common stock, which is equivalent to an initial conversion price of $124.52 per share, subject to adjustment upon the occurrence of specified events. Holders of the 2018 Notes may convert, at their option, on or after March 1, 2018. Further, holders of the 2018 Notes may convert, at their option, prior to March 1, 2018 only under the following circumstances: (1) during any quarter beginning after September 30, 2013, if the closing price of our common stock for at least 20 trading days (whether or not consecutive) during the last 30 consecutive trading days immediately preceding the quarter is greater than or equal to 130% of the conversion price; (2) during the five-business day period following any five-consecutive trading day period in which the trading price of the 2018 Notes is less than 98% of the product of the closing price of our common stock for each day during such five-consecutive trading day period or (3) if we make specified distributions to holders of our common stock or if specified corporate transactions occur. Upon conversion, we would pay cash for the principal amount and, if applicable, deliver shares of our common stock (subject to our right to deliver cash in lieu of all or a portion of such shares of our common stock) based on a daily conversion value. If a fundamental change occurs prior to the maturity date, holders of the 2018 Notes may require us to repurchase all or a portion of their 2018 Notes for cash at a repurchase price equal to 100% of the principal amount plus any accrued and unpaid interest. In addition, if specific corporate events occur prior to the maturity date, we would increase the conversion rate for a holder who elects to convert its 2018 Notes in connection with such an event in certain circumstances.

In accordance with GAAP relating to embedded conversion features, we initially valued and bifurcated the conversion feature associated with the 2018 Notes. We recorded to stockholders’ equity $82.8 million for the conversion feature. The resulting debt discount is being amortized to interest expense at an effective interest rate of 4.29%.

In connection with the offering of the 2018 Notes, we entered into convertible note hedge transactions whereby we have the option to purchase initially (subject to adjustment for certain specified events) 5.3 million shares of our common stock at a price of $124.52 per share. The cost of the convertible note hedge transactions was $177.5 million. In addition, we sold warrants whereby the holders of the warrants have the option to purchase initially (subject to adjustment for certain specified events) 5.3 million shares of our common stock at a price of $184.48 per share. We received $120.3 million in cash proceeds from the sale of these warrants. Taken together, the purchase of the convertible note hedges and the sale of the warrants are intended to reduce potential dilution from the conversion of the 2018 Notes and to effectively increase the overall conversion price from $124.52 to $184.48 per share. As these transactions meet certain accounting criteria, the convertible note hedges and warrants are recorded in stockholders’ equity and are not accounted for as derivatives. The net cost incurred in connection with the convertible note hedge and warrant transactions was recorded as a reduction to additional paid-in capital on the consolidated balance sheet.

During the first quarter of 2018, $5.2 million in aggregate principal amount of the 2018 Notes were converted for $5.2 million in cash and 25,745 shares of our common stock. As a result, we recognized a loss on debt extinguishment of less than $0.1 million.

As of June 30, 2018, the 2018 Notes had been completely settled.

2019 Notes, 2021 Notes, Bond Hedges and Warrant Transactions

In March 2014, we issued $800.0 million in aggregate principal amount of 0.25% Convertible Senior Notes due in March 2019 and $1.20 billion in aggregate principal amount of 1.25% Convertible Senior Notes due in March 2021 in a public offering. In April 2014, we issued an additional $120.0 million in aggregate principal amount of the 2019 Notes and $180.0 million in aggregate principal amount of the 2021 Notes, pursuant to the exercise in full of the overallotment options by the underwriters. The total net proceeds from the issuances, after deducting transaction costs, were $905.8 million for the 2019 Notes and $1.36 billion for the 2021 Notes.

Each $1,000 of principal of these notes is initially convertible into 2.7788 shares of our common stock, which is equivalent to an initial conversion price of $359.87 per share, subject to adjustment upon the occurrence of specified events. Holders of these notes may elect to convert on or after December 1, 2018 for the 2019 Notes and December 1, 2020 for the 2021 Notes. The settlement of such an election to convert the 2019 Notes would be in cash and/or shares of our common stock, which we intend to settle in cash, on the maturity date. The settlement of such an election to convert the 2021 Notes would be in cash for the principal amount and, if applicable, shares of our common stock (subject to our right to deliver cash in lieu of all or a portion of such shares of our common stock), on the maturity date. Further, holders of these notes may convert, at their option, prior to the respective dates above only under the following circumstances: (1) during a quarter in which the closing price of our common stock for at least 20 trading days (whether or not consecutive) during the last 30 consecutive trading days immediately preceding the quarter is greater than or equal to 130% of the conversion price; (2) during the five-business day period following any five-consecutive trading day period in which the trading price of these notes is less than 98% of the product of the closing price of our common stock for each day during such five-consecutive trading day period or (3) if we make specified distributions to holders of our common stock or if specified corporate transactions occur. Upon such a conversion of the 2019 Notes, we would pay or deliver (as applicable) cash, shares of our common stock or a combination thereof, at our election. Upon such a conversion of the 2021 Notes, we would pay cash for the principal amount and, if applicable, deliver shares of our common stock (subject to our right to deliver cash in lieu of all or a portion of such shares of our common stock) based on a daily conversion value. If a fundamental change occurs prior to the applicable maturity date, holders of these notes may require us to repurchase all or a portion of their notes for cash at a repurchase price equal to 100% of the principal amount plus any accrued and unpaid interest. In addition, if specific corporate events occur prior to the applicable maturity date, we would increase the conversion rate for a holder who elects to convert their notes in connection with such an event in certain circumstances. As of December 31, 2018, none of the conditions permitting the holders of 2021 Notes to early convert had been met. Therefore, 2021 Notes were classified as long-term.

In accordance with GAAP relating to embedded conversion features, we initially valued and bifurcated the conversion features associated with these notes. We recorded to stockholders’ equity $188.1 million for the 2019 Notes’ conversion feature and $369.4 million for the 2021 Notes’ conversion feature. The resulting debt discounts are being amortized to interest expense at an effective interest rate of 4.89% and 5.96%, respectively.

In connection with the offering of these notes in March 2014, we entered into convertible note hedge transactions whereby we have the option to purchase initially (subject to adjustment for certain specified events) a total of 5.6 million shares of our common stock at a price of $359.87 per share. The total cost of the convertible note hedge transactions was $524.7 million. In addition, we sold warrants whereby the holders of the warrants have the option to purchase initially (subject to adjustment for certain specified events) 2.2 million shares of our common stock at a price of $512.66 per share for the 2019 Notes and 3.3 million shares of our common stock at a price of $560.64 per share for 2021 Notes. We received $338.4 million in total cash proceeds from the sales of these warrants. Similarly, in connection with the issuance of the additional notes in April 2014, we entered into convertible note hedge transactions and paid a total of $78.7 million. In addition, we sold warrants to purchase initially (subject to adjustment for certain specified events) 0.3 million shares of our common stock at a price of $512.66 per share for the 2019 Notes and 0.5 million shares of our common stock at a price of $560.64 per share for the 2021 Notes. We received $50.8 million in total cash proceeds from the sales of these warrants. Taken together, the purchases of the convertible note hedges and the sales of the warrants are intended to reduce potential dilution and/or cash payments from the conversion of these notes and to effectively increase the overall conversion price from $359.87 to $512.66 per share for the 2019 Notes and from $359.87 to $560.64 per share for the 2021 Notes. As these transactions meet certain accounting criteria, the convertible note hedges and warrants are recorded in stockholders’ equity and are not accounted for as derivatives. The net cost incurred in connection with the convertible note hedge and warrant transactions was recorded as a reduction to additional paid-in capital on the consolidated balance sheet.

2022 Notes, Bond Hedges and Warrant Transactions

In March 2017, we issued $977.5 million in aggregate principal amount of 2.375% Convertible Senior Notes due in March 2022 in a public offering. The net proceeds from the issuance, after deducting transaction costs, were $965.9 million.

Each $1,000 of principal of the 2022 Notes is initially convertible into 3.0534 shares of our common stock, which is equivalent to an initial conversion price of $327.50 per share, subject to adjustment upon the occurrence of specified events. Holders of the 2022 Notes may convert, at their option, on or after December 15, 2021. Further, holders of the 2022 Notes may convert, at their option, prior to December 15, 2021 only under the following circumstances: (1) during any quarter beginning after June 30, 2017, if the closing price of our common stock for at least 20 trading days (whether or not consecutive) during the last 30 consecutive trading days immediately preceding the quarter is greater than or equal to 130% of the conversion price; (2) during the five-business day period following any five-consecutive trading day period in which the trading price of the 2022 Notes is less than 98% of the product of the closing price of our common stock for each day during such five-consecutive trading day period or (3) if we make specified distributions to holders of our common stock or if specified corporate transactions occur. Upon a conversion, we would pay cash for the principal amount and, if applicable, deliver shares of our common stock (subject to our right to deliver cash in lieu of all or a portion of such shares of our common stock) based on a daily conversion value. If a fundamental change occurs prior to the maturity date, holders of the 2022 Notes may require us to repurchase all or a portion of their 2022 Notes for cash at a repurchase price equal to 100% of the principal amount plus any accrued and unpaid interest. In addition, if specific corporate events occur prior to the maturity date, we would increase the conversion rate for a holder who elects to convert its 2022 Notes in connection with such an event in certain circumstances. As of December 31, 2018, none of the conditions permitting the holders of the 2022 Notes to early convert had been met. Therefore, the 2022 Notes are classified as long-term.

In accordance with GAAP relating to embedded conversion features, we initially valued and bifurcated the conversion feature associated with the 2022 Notes. We recorded to stockholders’ equity $145.6 million for the conversion feature. The resulting debt discount is being amortized to interest expense at an effective interest rate of 6.00%.

In connection with the offering of the 2022 Notes, we entered into convertible note hedge transactions whereby we have the option to purchase initially (subject to adjustment for certain specified events) 3.0 million shares of our common stock at a price of $327.50 per share. The cost of the convertible note hedge transactions was $204.1 million. In addition, we sold warrants whereby the holders of the warrants have the option to purchase initially (subject to adjustment for certain specified events) 3.0 million shares of our common stock at a price of $655.00 per share. We received $52.9 million in cash proceeds from the sale of these warrants. Taken together, the purchase of the convertible note hedges and the sale of the warrants are intended to reduce potential dilution from the conversion of the 2022 Notes and to effectively increase the overall conversion price from $327.50 to $655.00 per share. As these transactions meet certain accounting criteria, the convertible note hedges and warrants are recorded in stockholders’ equity and are not accounted for as derivatives. The net cost incurred in connection with the convertible note hedge and warrant transactions was recorded as a reduction to additional paid-in capital on the consolidated balance sheet.

2025 Notes

In August 2017, we issued $1.80 billion in aggregate principal amount of unsecured 5.30% Senior Notes due in August 2025 pursuant to Rule 144A and Regulation S under the Securities Act. The net proceeds from the issuance, after deducting transaction costs, were $1.77 billion.

Credit Agreement

In June 2015, we entered into a senior asset-based revolving credit agreement (as amended from time to time, the “Credit Agreement”) with a syndicate of banks. Borrowed funds bear interest, at our option, at an annual rate of (a) 1% plus LIBOR or (b) the highest of (i) the federal funds rate plus 0.50%, (ii) the lenders’ “prime rate” or (iii) 1% plus LIBOR. The fee for undrawn amounts is 0.25% per annum. The Credit Agreement is secured by certain of our accounts receivable, inventory and equipment. Availability under the Credit Agreement is based on the value of such assets, as reduced by certain reserves.

On May 3, 2018, the Company entered into the Ninth Amendment (the “Ninth Amendment”) to the Credit Agreement. The Ninth Amendment amended the Credit Agreement to permit Tesla to include in its discretion: (i) the Fremont Factory facilities in the U.S. borrowing base and/or (ii) vehicles in and in-transit to Belgium in the Dutch borrowing base.

Vehicle and Other Loans

We have entered into various vehicle and other loan agreements with various financial institutions. The vehicle loans are secured by the vehicles financed and used vehicles owned by us.

2.75% Convertible Senior Notes due in 2018

In October 2013, SolarCity issued $230.0 million in aggregate principal amount of 2.75% Convertible Senior Notes due on November 1, 2018 in a public offering.

Each $1,000 of principal of the convertible senior notes is now convertible into 1.7838 shares of our common stock, which is equivalent to a conversion price of $560.64 per share (subject to adjustment upon the occurrence of specified events related to dividends, tender offers or exchange offers). Holders of the convertible senior notes may convert, at their option, at any time up to and including the second trading day prior to the maturity date. If certain events that would constitute a make-whole fundamental change (such as significant changes in ownership, corporate structure or tradability of our common stock) occur prior to the maturity date, we would increase the conversion rate for a holder who elects to convert its convertible senior notes in connection with such an event in certain circumstances. The maximum conversion rate is capped at 2.3635 shares for each $1,000 of principal of the convertible senior notes, which is equivalent to a minimum conversion price of $423.10 per share. The convertible senior notes do not have a cash conversion option. The convertible senior note holders may require us to repurchase their convertible senior notes for cash only under certain defined fundamental changes.

In November 2018, the 2.75% Convertible Senior Notes due in 2018 matured and aggregate outstanding principal of $230.0 million was fully paid off.

1.625% Convertible Senior Notes due in 2019

In September 2014, SolarCity issued $500.0 million and in October 2014, SolarCity issued an additional $66.0 million in aggregate principal amount of 1.625% Convertible Senior Notes due on November 1, 2019 in a private placement.

Each $1,000 of principal of the convertible senior notes is now convertible into 1.3169 shares of our common stock, which is equivalent to a conversion price of $759.36 per share (subject to adjustment upon the occurrence of specified events related to dividends, tender offers or exchange offers). The maximum conversion rate is capped at 1.7449 shares for each $1,000 of principal of the convertible senior notes, which is equivalent to a minimum conversion price of $573.10 per share. The convertible senior notes do not have a cash conversion option. The convertible senior note holders may require us to repurchase their convertible senior notes for cash only under certain defined fundamental changes.

In connection with the issuance of the convertible senior notes in September and October 2014, SolarCity entered into capped call option agreements to reduce the potential dilution upon the conversion of the convertible senior notes. Specifically, upon the exercise of the capped call options, we would now receive shares of our common stock equal to 745,377 shares multiplied by (a) (i) the lower of $1,146.18 or the then market price of our common stock less (ii) $759.36 and divided by (b) the then market price of our common stock. The results of this formula are that we would receive more shares as the market price of our common stock exceeds $759.36 and approaches $1,146.18, but we would receive less shares as the market price of our common stock exceeds $1,146.18. Consequently, if the convertible senior notes are converted, then the number of shares to be issued by us would be effectively partially offset by the shares received by us under the capped call options. We can also elect to receive the equivalent value of cash in lieu of shares. The capped call options expire on various dates ranging from September 4, 2019 to October 29, 2019, and the formula above would be adjusted in the event of a merger; a tender offer; nationalization; insolvency; delisting of our common stock; changes in law; failure to deliver; insolvency filing; stock splits, combinations, dividends, repurchases or similar events or an announcement of certain of the preceding actions. Although intended to reduce the net number of shares issued after a conversion of the convertible senior notes, the capped call options were separately negotiated transactions, are not a part of the terms of the convertible senior notes, do not affect the rights of the convertible senior note holders and take effect regardless of whether the convertible senior notes are actually converted. The capped call options meet the criteria for equity classification because they are indexed to our common stock and we always control whether settlement will be in shares or cash.

Zero-Coupon Convertible Senior Notes due in 2020

In December 2015, SolarCity issued $113.0 million in aggregate principal amount of Zero-Coupon Convertible Senior Notes due on December 1, 2020 in a private placement. $13.0 million of the convertible senior notes were issued to related parties (see Note 21, Related Party Transactions).

Each $1,000 of principal of the convertible senior notes is now convertible into 3.3333 shares of our common stock, which is equivalent to a conversion price of $300.00 per share (subject to adjustment upon the occurrence of specified events related to dividends, tender offers or exchange offers). The maximum conversion rate is capped at 4.2308 shares for each $1,000 of principal of the convertible senior notes, which is equivalent to a minimum conversion price of $236.36 per share. The convertible senior notes do not have a cash conversion option. The convertible senior note holders may require us to repurchase their convertible senior notes for cash only under certain defined fundamental changes. On or after June 30, 2017, the convertible senior notes are redeemable by us in the event that the closing price of our common stock exceeds 200% of the conversion price for 45 consecutive trading days ending within three trading days of such redemption notice at a redemption price equal to 100% of the principal amount plus any accrued and unpaid interest.

Related Party Promissory Notes

In April, 2017, our CEO, SolarCity’s former CEO and SolarCity’s former Chief Technology Officer exchanged their $100.0 million (collectively) in aggregate principal amount of 6.50% Solar Bonds due in February 2018 for promissory notes in the same amounts and with substantially the same terms.

During the year ended December 31, 2018, we fully repaid the $100.0 million in aggregate principal amount of 6.50% promissory notes held by our CEO, SolarCity’s former CEO and SolarCity’s former Chief Technology Officer.

Solar Bonds

Solar Bonds are senior unsecured obligations that are structurally subordinate to the indebtedness and other liabilities of our subsidiaries. Solar Bonds were issued under multiple series with various terms and interest rates. See Note 21, Related Party Transactions, for Solar Bonds issued to related parties.

Warehouse Agreements

In August 2016, our subsidiaries entered into the a loan and security agreement (the “2016 Warehouse Agreement”) for borrowings secured by the future cash flows arising from certain leases and the associated leased vehicles. On August 17, 2017, the 2016 Warehouse Agreement was amended to modify the interest rates and extend the availability period and the maturity date, and our subsidiaries entered into another loan and security agreement (the “2017 Warehouse Agreement”) with substantially the same terms as and that shares the same committed amount with the 2016 Warehouse Agreement. On August 16, 2018, the 2016 Warehouse Agreement and 2017 Warehouse Agreement were amended to extend the availability period from August 17, 2018 to August 16, 2019 and extend the maturity date from September 2019 to September 2020. On December 28, 2018, our subsidiaries terminated the 2017 Warehouse Agreement after having fully repaid all obligations thereunder, and entered into a third loan and security agreement with substantially the same terms as and that shares the same committed amount with the 2016 Warehouse Agreement. We refer to these agreements together as the “Warehouse Agreements.” Amounts drawn under the Warehouse Agreements generally bear interest at a fixed margin above (i) LIBOR or (ii) the commercial paper rate. The Warehouse Agreements are non-recourse to our other assets.

Pursuant to the Warehouse Agreements, an undivided beneficial interest in the future cash flows arising from certain leases and the related leased vehicles has been sold for legal purposes but continues to be reported in the consolidated financial statements. The interest in the future cash flows arising from these leases and the related vehicles is not available to pay the claims of our creditors other than pursuant to obligations to the lenders under the Warehouse Agreements. Any excess cash flows not required to pay obligations under the Warehouse Agreements are available for distributions.

During the year ended December 31, 2018, we repaid $1.16 billion of the principal outstanding under the Warehouse Agreements.

Canada Credit Facility

In December 2016, one of our subsidiaries entered into a credit agreement (the “Canada Credit Facility”) with a bank for borrowings secured by our interests in certain vehicle leases. In December 2017 and December 2018, the Canada Credit Facility was amended to add our interests in additional vehicle leases as collateral, allowing us to draw additional funds. Amounts drawn under the Canada Credit Facility bear interest at fixed rates. The Canada Credit Facility is non-recourse to our other assets.

Term Loan due in 2019

In March 2016, a subsidiary of SolarCity entered into an agreement for a term loan. The term loan bears interest at an annual rate of the lender’s cost of funds plus 3.25%. The fee for undrawn commitments is 0.85% per annum. On March 31, 2017, the agreement was amended to upsize the committed amount, extend the availability period and extend the maturity date. The term loan is secured by substantially all of the assets of the subsidiary and is non-recourse to our other assets. The term loan had an original maturity date of December 2018 and on December 19, 2018, the maturity date was extended to January 2019. On January 30, 2019, the maturity date of the term loan was further extended to April 2019.

Term Loan due in 2021

In January 2016, a subsidiary of SolarCity entered into an agreement with a syndicate of banks for a term loan. The term loan bears interest at an annual rate of three-month LIBOR plus 3.50%. The term loan is secured by substantially all of the assets of the subsidiary, including its interests in certain financing funds, and is non-recourse to our other assets.

Revolving Aggregation Credit Facility

In May 2015, a subsidiary of SolarCity entered into an agreement with a syndicate of banks for a revolving aggregation credit facility. On March 23, 2016 and June 23, 2017, the agreement was amended to modify the interest rates and extend the availability period and the maturity date. The revolving aggregation credit facility bears interest at an annual rate of 2.75% plus (i) for commercial paper loans, the commercial paper rate and (ii) for LIBOR loans, at our option, three-month LIBOR or daily LIBOR. The revolving aggregation credit facility is secured by certain assets of certain of our subsidiaries and was non-recourse to our other assets. On December 28, 2018, the aggregate outstanding principal amount of $210.2 million was repaid and the Revolving Aggregation Credit Facility was terminated.

Cash Equity Debt I

In connection with the cash equity financing on May 2, 2016, SolarCity issued $121.7 million in aggregate principal amount of debt that bears interest at a fixed rate. This debt is secured by, among other things, our interests in certain financing funds and is non-recourse to our other assets.

Cash Equity Debt II

In connection with the cash equity financing on September 8, 2016, SolarCity issued $210.0 million in aggregate principal amount of debt that bears interest at a fixed rate. This debt is secured by, among other things, our interests in certain financing funds and is non-recourse to our other assets.

Cash Equity Debt III

In connection with the cash equity financing on December 16, 2016, we issued $170.0 million in aggregate principal amount of debt that bears interest at a fixed rate. This debt is secured by, among other things, our interests in certain financing funds and is non-recourse to our other assets.

Solar Asset-backed Notes, Series 2013-1

In November 2013, SolarCity pooled and transferred qualifying solar energy systems and the associated customer contracts into a Special Purpose Entity (“SPE”) and issued $54.4 million in aggregate principal amount of Solar Asset-backed Notes, Series 2013-1, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. As of December 31, 2018, these solar assets had a carrying value of $85.1 million and are included within solar energy systems, leased and to be leased, net, on the consolidated balance sheets. The Solar Asset-backed Notes were issued at a discount of 0.05%. The cash flows generated by these solar assets are used to service the monthly principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets. SolarCity contracted with the SPE to provide operations & maintenance and administrative services for the solar energy systems.

In connection with the pooling of the solar assets that were transferred to the SPE in November 2013, SolarCity terminated a lease pass-through arrangement with an investor. The lease pass-through arrangement had been accounted for as a borrowing, and the amount outstanding under the lease pass-through arrangement was recorded as a lease pass-through financing obligation. The balance that was then outstanding under the lease pass-through arrangement was $56.4 million. SolarCity paid the investor an aggregate of $40.2 million, and the remaining balance is paid over time using the net cash flows generated by the assets previously leased under the lease pass-through arrangement, after payment of the principal and interest on the Solar Asset-backed Notes and expenses related to the assets and the Solar Asset-backed Notes; this was contractually documented as a right to participate in the future cash flows of the SPE (“participation interest”). The participation interest was recorded as a component of other long-term liabilities for the non-current portion and accrued liabilities for the current portion. We account for the participation interest as a liability because the investor has no voting or management rights in the SPE, the participation interest would terminate upon the investor achieving a specified return and the investor has the option to put the participation interest to us on August 3, 2021 for the amount necessary for the investor to achieve the specified return, which would require us to settle the participation interest in cash. In addition, under the terms of the participation interest, we have the option to purchase the participation interest from the investor for the amount necessary for the investor to achieve the specified return.

Solar Asset-backed Notes, 2014-1

In April 2014, SolarCity pooled and transferred qualifying solar energy systems and the associated customer contracts into a SPE and issued $70.2 million in aggregate principal amount of Solar Asset-backed Notes, Series 2014-1, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. As of December 31, 2018, these solar assets had a carrying value of $104.4 million and are included within solar energy systems, leased and to be leased, net, in the consolidated balance sheets. The Solar Asset-backed Notes were issued at a discount of 0.01%. The cash flows generated by these solar assets are used to service the monthly principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets. SolarCity contracted with the SPE to provide operations & maintenance and administrative services for the solar energy systems.

Solar Asset-backed Notes, Series 2014-2

In July 2014, SolarCity pooled and transferred qualifying solar energy systems and the associated customer contracts into a SPE and issued $160.0 million in aggregate principal amount of Solar Asset-backed Notes, Series 2014-2, Class A, and $41.5 million in aggregate principal amount of Solar Asset-backed Notes, Series 2014-2, Class B, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. As of December 31, 2018, these solar assets had a carrying value of $244.5 million and are included within solar energy systems, leased and to be leased, net, in the consolidated balance sheets. The Solar Asset-backed Notes were issued at a discount of 0.01%. These solar assets and the associated customer contracts are leased to an investor under a lease pass-through arrangement that we have accounted for as a borrowing. The rent paid by the investor under the lease pass-through arrangement is used (and following the expiration of the lease pass-through arrangement, the cash generated by these solar assets will be used) to service the semi-annual principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets. SolarCity contracted with the SPE to provide operations & maintenance and administrative services for certain of the solar energy systems.

Solar Asset-backed Notes, Series 2015-1

In August 2015, SolarCity pooled and transferred its interests in certain financing funds into a SPE and issued $103.5 million in aggregate principal amount of Solar Asset-backed Notes, Series 2015-1, Class A, and $20.0 million in aggregate principal amount of Solar Asset-backed Notes, Series 2015-1, Class B, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. The Solar Asset-backed Notes were issued at a discount of 0.05% for Class A and 1.46% for Class B. The cash distributed by the underlying financing funds to the SPE are used to service the semi-annual principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets.

Solar Asset-backed Notes, Series 2016-1

In February 2016, SolarCity transferred qualifying solar energy systems and the associated customer contracts into a SPE and issued $52.2 million in aggregate principal amount of Solar Asset-backed Notes, Series 2016-1, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. As of December 31, 2018, these solar assets had a carrying value of $80.3 million and are included within solar energy systems, leased and to be leased, net, on the consolidated balance sheets. The Solar Asset-backed Notes were issued at a discount of 6.71%. These solar assets and the associated customer contracts are leased to an investor under a lease pass-through arrangement that we have accounted for as a borrowing. The rent paid by the investor under the lease pass-through arrangement is used (and following the expiration of the lease pass-through arrangement, the cash generated by these solar assets will be used) to service the semi-annual principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets. SolarCity contracted with the SPE to provide operations & maintenance and administrative services for certain of the solar energy systems.

Solar Asset-backed Notes, Series 2017-1

In November 2017, we pooled and transferred our interests in certain financing funds into a SPE and issued $265.0 million in aggregate principal amount of Solar Asset-backed Notes, Series 2017-1, Class A, and $75.0 million in aggregate principal amount of Solar Asset-backed Notes, Series 2017-1, Class B, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. The Solar Asset-backed Notes were issued at a discount of 0.01% for Class A and 0.04% for Class B. The cash distributed by the underlying financing funds to the SPE are used to service the semi-annual principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets.

Solar Asset-backed Notes, Series 2017-2

In December 2017, we transferred qualifying solar energy systems and the associated customer contracts into a SPE and issued $99.0 million in aggregate principal amount of Solar Asset-backed Notes, Series 2017-2, Class A, and $31.9 million in aggregate principal amount of Solar Asset-backed Notes, Series 2017-2, Class B, backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. As of December 31, 2018, these solar assets had a carrying value of $204.7 million and are included within solar energy systems, leased and to be leased, net, on the consolidated balance sheets. The Solar Asset-backed Notes were issued at a discount of 0.01% for Class A and 0.04% for Class B. Most of these solar assets and the associated customer contracts are leased to investors under lease pass-through arrangements that we have accounted for as borrowings. The rent paid by the investors under the lease pass-through arrangements is used (and following the expiration of the lease pass-through arrangements, the cash generated by these solar assets will be used) to service the semi-annual principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets. We contracted with the SPE to provide operations & maintenance and administrative services for certain of the solar energy systems.

Solar Asset-backed Notes, Series 2018-1

In December 2018, we pooled and transferred our interests in certain financing funds into a SPE and issued $334.1 million in aggregate principal amount of Solar Asset-backed Notes, Series 2018-1 backed by these solar assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. The Solar Asset-backed Notes were issued at par value. The cash distributed by the underlying financing funds to the SPE are used to service the semi-annual principal and interest payments on the Solar Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Asset-backed Note holders, have no recourse to our other assets.

Solar Loan-backed Notes, Series 2016-A

In January 2016, SolarCity pooled and transferred certain MyPower customer notes receivable into a SPE and issued $151.6 million in aggregate principal amount of Solar Loan-backed Notes, Series 2016-A, Class A, and $33.4 million in aggregate principal amount of Solar Loan-backed Notes, Series 2016-A, Class B, backed by these notes receivable to investors. The SPE is wholly owned by us and is consolidated in the financial statements. The Solar Loan-backed Notes were issued at a discount of 3.22% for Class A and 15.90% for Class B. The payments received by the SPE from these notes receivable are used to service the semi-annual principal and interest payments on the Solar Loan-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Loan-backed Note holders, have no recourse to our other assets.

Solar Loan-backed Notes, Series 2017-A

In January 2017, we pooled and transferred certain MyPower customer notes receivable into a SPE and issued $123.0 million in aggregate principal amount of Solar Loan-backed Notes, Series 2017-A, Class A; $8.8 million in aggregate principal amount of Solar Loan-backed Notes, Series 2017-A, Class B, and $13.2 million in aggregate principal amount of Solar Loan-backed Notes, Series 2017-A, Class C, backed by these notes receivable to investors. The SPE is wholly owned by us and is consolidated in the financial statements. Accordingly, we did not recognize a gain or loss on the transfer of these notes receivable. The Solar Loan-backed Notes were issued at a discount of 1.87% for Class A, 1.86% for Class B and 8.13% for Class C. The payments received by the SPE from these notes receivable are used to service the semi-annual principal and interest payments on the Solar Loan-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Solar Loan-backed Note holders, have no recourse to our other assets.

Automotive Asset-backed Notes, Series 2018-A

In February 2018, we transferred receivables related to certain leased vehicles into a SPE and issued $546.1 million in aggregate principal amount of Automotive Asset-backed Notes, Series 2018-A, backed by these automotive assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. The proceeds from the issuance, net of discounts and fees, were $543.1 million. The cash flows generated by these automotive assets are used to service the monthly principal and interest payments on the Automotive Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer lease contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Automotive Asset-backed Note holders, have no recourse to our other assets. A third-party contracted with us to provide administrative and collection services for these automotive assets.

Automotive Asset-backed Notes, Series 2018-B

In December 2018, we transferred receivables related to certain leased vehicles into a SPE and issued $837.4 million in aggregate principal amount of Automotive Asset-backed Notes, Series 2018-B, backed by these automotive assets to investors. The SPE is wholly owned by us and is consolidated in the financial statements. The proceeds from the issuance, net of discounts and fees, were $833.1 million. The cash flows generated by these automotive assets are used to service the monthly principal and interest payments on the Automotive Asset-backed Notes and satisfy the SPE’s expenses, and any remaining cash is distributed to one of our wholly owned subsidiaries. We recognize revenue earned from the associated customer lease contracts in accordance with our revenue recognition policy. The SPE’s assets and cash flows are not available to our other creditors, and the creditors of the SPE, including the Automotive Asset-backed Note holders, have no recourse to our other assets. A third-party contracted with us to provide administrative and collection services for these automotive assets.

Solar Renewable Energy Credit and other Loans

We have entered into various solar renewable energy credit and other loan agreements with various financial institutions. The solar renewable energy credit loan facility is secured by substantially all of the assets of one of our wholly owned subsidiaries, including its rights under forward contracts to sell solar renewable energy credits, and is non-recourse to our other assets.

Interest Expense

The following table presents the interest expense related to the contractual interest coupon, the amortization of debt issuance costs and the amortization of debt discounts on our convertible senior notes with cash conversion features, which include the 2018 Notes, the 2019 Notes, the 2021 Notes and the 2022 Notes (in thousands):

Year Ended December 31,
201820172016
Contractual interest coupon$42,694$39,129$27,060
Amortization of debt issuance costs6,6296,9328,567
Amortization of debt discounts123,560114,02399,811
Total$172,883$160,084$135,438

Pledged Assets

As of December 31, 2018 and 2017, we had pledged or restricted $5.23 billion and $4.05 billion of our assets (consisted principally of restricted cash, receivables, inventory, SRECs, solar energy systems, property and equipment) as collateral for our outstanding debt.

Note 14 – Common Stock

In May 2016, we completed a public offering of common stock and sold a total of 7,915,004 shares of our common stock for total cash proceeds of approximately $1.7 billion, net of underwriting discounts and offering costs.

On November 21, 2016, we completed the acquisition of SolarCity (see Note 3, Business Combinations) and exchanged 11,124,497 shares of our common stock for 101,131,791 shares of SolarCity common stock in accordance with the terms of the Merger Agreement.

In March 2017, we completed a public offering of our common stock and issued a total of 1,536,259 shares for total cash proceeds of $399.6 million (including 95,420 shares purchased by our CEO for $25.0 million), net of underwriting discounts and offering costs.

In April 2017, our CEO exercised his right under the indenture to convert all of his Zero-Coupon Convertible Senior Notes due in 2020, which had an aggregate principal amount of $10.0 million. As a result, on April 26, 2017, we issued 33,333 shares of our common stock to our CEO in accordance with the specified conversion rate, and we recorded an increase to additional paid-in capital of $10.3 million (see Note 13, Long-Term Debt Obligations).

During 2017, we issued 1,510,274 shares of our common stock and paid $32.7 million in cash pursuant to conversions by or exchange agreements entered into with holders of $199.5 million in aggregate principal amount of the 2018 Notes (see Note 13, Long-Term Debt Obligations). As a result, we recorded an increase to additional paid-in capital of $163.0 million. In addition, we settled portions of the bond hedges and warrants entered into in connection with the 2018 Notes, resulting in a net cash inflow of $56.8 million (which was recorded as an increase to additional paid-in capital), the issuance of 34,393 shares of our common stock and the receipt of 169,890 shares of our common stock.

During the fourth quarter of 2017, we issued 34,772 shares of our common stock as part of the purchase consideration for an acquisition.

During the year ended 2018, $5.2 million in aggregate principal amount of the 2018 Notes were converted for $5.2 million in cash and 25,745 shares of our common stock. We also settled bond hedges entered into in connection with the 2018 Notes, resulting in the receipt of 25,745 shares of our common stock. Additionally, we settled the remaining warrants entered into in connection with the 2018 Notes by issuing 238,195 shares of our common stock.

In November 2018, our CEO purchased from us 56,915 shares of our common stock in a private placement at a per share price equal to the last closing price of our stock prior to the execution of the purchase agreement for an aggregate $20.0 million.

Note 15 – Equity Incentive Plans

In 2010, we adopted the 2010 Equity Incentive Plan (the “2010 Plan”). The 2010 Plan provides for the granting of stock options, RSUs and stock purchase rights to our employees, directors and consultants. Stock options granted under the 2010 Plan may be either incentive stock options or nonqualified stock options. Incentive stock options may only be granted to our employees. Nonqualified stock options may be granted to our employees, directors and consultants. Generally, our stock options and RSUs vest over four years and are exercisable over a maximum period of 10 years from their grant dates. Vesting typically terminates when the employment or consulting relationship ends. In addition, as a result of our acquisition of SolarCity, we assumed its equity award plans and its outstanding equity awards as of the Acquisition Date. SolarCity’s outstanding equity awards were converted into equity awards to acquire our common stock in share amounts and prices based on the Exchange Ratio, with the equity awards retaining the same vesting and other terms and conditions as in effect immediately prior to the acquisition. The vesting and other terms and conditions of the assumed equity awards are substantially the same as those of the 2010 Plan.

As of December 31, 2018, 9,089,194 shares were reserved and available for issuance under the 2010 Plan.

The following table summarizes our stock option and RSU activity:

Stock OptionsRSUs
Weighted-Weighted-
Weighted-AverageAggregateAverage
AverageRemainingIntrinsicGrant
Number ofExerciseContractualValueNumberDate Fair
OptionsPriceLife (Years)(Billions)of RSUsValue
Balance, December 31, 201710,881,025$105.564,689,310$265.43
Granted22,535,566$346.563,043,155$316.46
Exercised or released(1,386,509)$120.40(1,724,395)$258.51
Cancelled(822,228)$315.48(1,349,156)$278.10
Balance, December 31, 201831,207,854$273.407.6$2.254,658,914$294.63
Vested and expected to vest, December 31, 201815,312,577$206.446.4$2.074,656,864$294.62
Exercisable and vested, December 31, 20187,877,652$83.453.9$1.99

The weighted-average grant date fair value of RSUs in the years ended December 31, 2018, 2017, and 2016 was $316.46, $308.71 and $202.59, respectively. The aggregate release date fair value of RSUs in the years ended December 31, 2018, 2017 and 2016 was $545.6 million, $491.0 million and $203.9 million, respectively.

The aggregate intrinsic value of options exercised in the years ended December 31, 2018, 2017, and 2016 was $293.2 million, $544.1 million and $1.68 billion, respectively.

Fair Value Assumptions

We use the fair value method in recognizing stock-based compensation expense. Under the fair value method, we estimate the fair value of each stock option award with service or service and performance conditions and the ESPP on the grant date generally using the Black-Scholes option pricing model and the weighted-average assumptions in the following table:

Year Ended December 31,
201820172016
Risk-free interest rate:
Stock options2.5%1.8%1.5%
ESPP2.0%1.1%0.6%
Expected term (in years):
Stock options4.75.16.2
ESPP0.50.50.5
Expected volatility:
Stock options42%42%47%
ESPP43%35%41%
Dividend yield:
Stock options0.0%0.0%0.0%
ESPP0.0%0.0%0.0%
Grant date fair value per share:
Stock options$121.92$122.25$98.70
ESPP$84.37$75.05$51.31

The fair value of RSUs with service or service and performance conditions is measured on the grant date based on the closing fair market value of our common stock. The risk-free interest rate is based on the U.S. Treasury yield for zero-coupon U.S. Treasury notes with maturities approximating each grant’s expected life. Prior to the fourth quarter of 2017, given our then limited history with employee grants, we used the “simplified” method in estimating the expected term of our employee grants; the simplified method utilizes the average of the time-to-vesting and the contractual life of the employee grant. Beginning with the fourth quarter of 2017, we use our historical data in estimating the expected term of our employee grants. The expected volatility is based on the average of the implied volatility of publicly traded options for our common stock and the historical volatility of our common stock.

2018 CEO Performance Award

In March 2018, our stockholders approved the Board of Directors’ grant of 20,264,042 stock option awards to our CEO (the “2018 CEO Performance Award”). The 2018 CEO Performance Award consists of 12 vesting tranches with a vesting schedule based entirely on the attainment of both operational milestones (performance conditions) and market conditions, assuming continued employment either as the CEO or as both Executive Chairman and Chief Product Officer and service through each vesting date. Each of the 12 vesting tranches of the 2018 CEO Performance Award will vest upon certification by the Board of Directors that both (i) the market capitalization milestone for such tranche, which begins at $100 billion for the first tranche and increases by increments of $50 billion thereafter, and (ii) any one of the following eight operational milestones focused on revenue or eight operational milestones focused on Adjusted EBITDA have been met for the previous four consecutive fiscal quarters on an annualized basis. Adjusted EBITDA is defined as net income (loss) attributable to common stockholders before interest expense, provision (benefit) for income taxes, depreciation and amortization and stock-based compensation.

Total Annualized Revenue (in billions)Annualized Adjusted EBITDA (in billions)
$20.0$1.5
$35.0$3.0
$55.0$4.5
$75.0$6.0
$100.0$8.0
$125.0$10.0
$150.0$12.0
$ 175.0$14.0

As of December 31, 2018, the following operational milestones were considered probable of achievement:

•Total revenue of $20.0 billion;
•Adjusted EBITDA of $1.5 billion; and
•Adjusted EBITDA of $3.0 billion.

Stock-based compensation expense associated with the 2018 CEO Performance Award is recognized over the longer of the expected achievement period for each pair of market capitalization or operational milestones, beginning at the point in time when the relevant operational milestone is considered probable of being met. If additional operational milestones become probable, stock-based compensation expense will be recorded in the period it becomes probable including cumulative catch-up expense for the service provided since the grant date. The market capitalization milestone period and the valuation of each tranche are determined using a Monte Carlo simulation and is used as the basis for determining the expected achievement period. The probability of meeting an operational milestone is based on a subjective assessment of our future financial projections. Even though no tranches of the 2018 CEO Performance Award vest unless a market capitalization and a matching operational milestone are both achieved, stock-based compensation expense is recognized only when an operational milestone is considered probable of achievement regardless of how much additional market capitalization must be achieved in order for a tranche to vest. At our current market capitalization, even the first tranche of the 2018 CEO Performance Award will not vest unless our market capitalization were to approximately double from the current level and stay at that increased level for a sustained period of time. Additionally, stock-based compensation represents a non-cash expense and is recorded as a selling, general, and administrative operating expense in our consolidated statement of operations.

As of December 31, 2018, we had $598.0 million of total unrecognized stock-based compensation expense for the operational milestones that were considered probable of achievement, which will be recognized over a weighted-average period of 3.1 years. As of December 31, 2018, we had unrecognized stock-based compensation expense of $1.51 billion for the operational milestones that were considered not probable of achievement. From March 21, 2018, when the grant was approved by our stockholders, through December 31, 2018, we recorded stock-based compensation expense of $174.9 million related to the 2018 CEO Performance Award.

2014 Performance-Based Stock Option Awards

In 2014, to create incentives for continued long-term success beyond the Model S program and to closely align executive pay with our stockholders’ interests in the achievement of significant milestones by us, the Compensation Committee of our Board of Directors granted stock option awards to certain employees (excluding our CEO) to purchase an aggregate of 1,073,000 shares of our common stock. Each award consisted of the following four vesting tranches with the vesting schedule based entirely on the attainment of the future performance milestones, assuming continued employment and service through each vesting date:

•1/4th of each award vests upon completion of the first Model X production vehicle;
•1/4th of each award vests upon achieving aggregate production of 100,000 vehicles in a trailing 12-month period;
•1/4th of each award vests upon completion of the first Model 3 production vehicle; and
•1/4th of each award vests upon achieving an annualized gross margin of greater than 30% for any three-year period.

As of December 31, 2018, the following performance milestones had been achieved:

•Completion of the first Model X production vehicle;
•Completion of the first Model 3 production vehicle; and
•Aggregate production of 100,000 vehicles in a trailing 12-month period.

We begin recognizing stock-based compensation expense as each performance milestone becomes probable of achievement. As of December 31, 2018, we had unrecognized stock-based compensation expense of $10.9 million for the performance milestone that was considered not probable of achievement. For the year ended December 31, 2018, we did not record any additional stock-based compensation related to these awards. For the years ended December 2017 and 2016, we recorded stock-based compensation expense of $6.8 million and $25.3 million, respectively, related to these awards.

2012 CEO Performance Award

In August 2012, our Board of Directors granted 5,274,901 stock option awards to our CEO (the “2012 CEO Performance Award”). The 2012 CEO Performance Award consists of 10 vesting tranches with a vesting schedule based entirely on the attainment of both performance conditions and market conditions, assuming continued employment and service through each vesting date. Each vesting tranche requires a combination of a pre-determined performance milestone and an incremental increase in our market capitalization of $4.00 billion, as compared to our initial market capitalization of $3.20 billion at the time of grant. As of December 31, 2018, the market capitalization conditions for all of the vesting tranches and the following performance milestones had been achieved:

•Successful completion of the Model X alpha prototype;
•Successful completion of the Model X beta prototype;
•Completion of the first Model X production vehicle;
•Aggregate production of 100,000 vehicles;
•Successful completion of the Model 3 alpha prototype;
•Successful completion of the Model 3 beta prototype;
•Completion of the first Model 3 production vehicle;
•Aggregate production of 200,000 vehicles; and
•Aggregate production of 300,000 vehicles.

We begin recognizing stock-based compensation expense as each milestone becomes probable of achievement. As of December 31, 2018, we had unrecognized stock-based compensation expense of $5.7 million for the performance milestone that was considered not probable of achievement. For the years ended December 31, 2018, 2017 and 2016, we recorded stock-based compensation expense of $0.1 million, $5.1 million and $15.8 million, respectively, related to the 2012 CEO Grant.

Our CEO earns a base salary that reflects the currently applicable minimum wage requirements under California law, and he is subject to income taxes based on such base salary. However, he has never accepted and currently does not accept his salary.

Summary Stock-Based Compensation Information

The following table summarizes our stock-based compensation expense by line item in the consolidated statements of operations (in thousands):

Year Ended December 31,
201820172016
Cost of revenues$85,742$43,845$30,400
Research and development261,079217,616154,632
Selling, general and administrative398,326205,299149,193
Restructuring and other3,877——
Total$749,024$466,760$334,225

We realized no income tax benefit from stock option exercises in each of the periods presented due to cumulative losses and valuation allowances. As of December 31, 2018, we had $1.57 billion of total unrecognized stock-based compensation expense related to non-performance awards, which will be recognized over a weighted-average period of 3.0 years.

ESPP

Our employees are eligible to purchase our common stock through payroll deductions of up to 15% of their eligible compensation, subject to any plan limitations. The purchase price would be 85% of the lower of the fair market value on the first and last trading days of each six-month offering period. During the years ended December 31, 2018, 2017 and 2016, we issued 399,936, 370,173 and 321,788 shares under the ESPP for $108.8 million, $71.0 million and $51.7 million, respectively. There were 2,023,954 shares available for issuance under the ESPP as of December 31, 2018.

Note 16 – Income Taxes

A provision for income taxes of $57.8 million, $31.5 million and $26.7 million has been recognized for the years ended December 31, 2018, 2017 and 2016, respectively, related primarily to our subsidiaries located outside of the U.S. Our loss before provision for income taxes for the years ended December 31, 2018, 2017 and 2016 was as follows (in thousands):

Year Ended December 31,
201820172016
Domestic$412,133$993,113$130,718
Noncontrolling interest and redeemable noncontrolling interest86,491279,17898,132
Foreign506,121936,741517,498
Loss before income taxes$1,004,745$2,209,032$746,348

The components of the provision for income taxes for the years ended December 31, 2018, 2017 and 2016 consisted of the following (in thousands):

Year Ended December 31,
201820172016
Current:
Federal$(901)$(9,552)$—
State2,7922,029568
Foreign23,62242,71553,962
Total current25,51335,19254,530
Deferred:
Federal———
State———
Foreign32,324(3,646)(27,832)
Total deferred32,324(3,646)(27,832)
Total provision for income taxes$57,837$31,546$26,698

On December 22, 2017, the 2017 Tax Cuts and Jobs Act (“Tax Act”) was enacted into law making significant changes to the Internal Revenue Code. Changes include, but are not limited to, a federal corporate tax rate decrease from 35% to 21% for tax years beginning after December 31, 2017, the transition of U.S. international taxation from a worldwide tax system to a territorial system and a one-time transition tax on the mandatory deemed repatriation of foreign earnings. We were required to recognize the effect of the tax law changes in the period of enactment, such as re-measuring our U.S. deferred tax assets and liabilities as well as reassessing the net realizability of our deferred tax assets and liabilities. The Tax Act did not give rise to any material impact on the consolidated balance sheets and consolidated statements of operations due to our historical worldwide loss position and the full valuation allowance on our net U.S. deferred tax assets.

In December 2017, the Securities and Exchange Commission staff issued Staff Accounting Bulletin No. 118, Income Tax Accounting Implications of the Tax Cuts and Jobs Act (“SAB 118”), which allowed us to record provisional amounts during a measurement period not to extend beyond one year from the enactment date. As such, in accordance with SAB 118, we completed our analysis during the fourth quarter of 2018 considering current legislation and guidance resulting in no material adjustments from the provisional amounts recorded during the prior year.

Deferred tax assets (liabilities) as of December 31, 2018 and 2017 consisted of the following (in thousands):

December 31,December 31,
20182017
Deferred tax assets:
Net operating loss carry-forwards$1,759,716$1,575,952
Research and development credits376,556306,808
Other tax credits127,813117,997
Deferred revenue155,757200,531
Inventory and warranty reserves165,26274,578
Stock-based compensation102,25696,916
Investment in certain financing funds—24,471
Accruals and others28,29526,416
Total deferred tax assets2,715,6552,423,669
Valuation allowance(1,805,648)(1,843,713)
Deferred tax assets, net of valuation allowance910,007579,956
Deferred tax liabilities:
Depreciation and amortization(860,611)(537,613)
Other(23,850)(18,734)
Investment in certain financing funds(33,493)—
Total deferred tax liabilities(917,954)(556,347)
Deferred tax liabilities, net of valuation allowance and deferred tax assets$(7,947)$23,609

As of December 31, 2018, we recorded a valuation allowance of $1.81 billion for the portion of the deferred tax asset that we do not expect to be realized. The valuation allowance on our net deferred taxes decreased by $38.1 million, increased by $821.0 million, and increased by $354.3 million during the years ended December 31, 2018, 2017 and 2016, respectively. The changes in valuation allowance are primarily due to additional U.S. deferred tax assets and liabilities incurred in the respective year. The 2017 additional U.S. deferred tax assets are net of re-measurement from 35% to 21% as a result of the Tax Act. There have been no material releases of the valuation allowance. Management believes that based on the available information, it is more likely than not that the U.S. deferred tax assets will not be realized, such that a full valuation allowance is required against all U.S. deferred tax assets. We have net $30.2 million of deferred tax assets in foreign jurisdictions, which management believes are more-likely-than-not to be fully realized given the expectation of future earnings in these jurisdictions.

The reconciliation of taxes at the federal statutory rate to our provision for income taxes for the years ended December 31, 2018, 2017 and 2016 was as follows (in thousands):

Year Ended December 31,
201820172016
Tax at statutory federal rate$(210,996)$(773,162)$(261,222)
State tax, net of federal benefit2,7922,029568
Nondeductible expenses65,37530,13826,547
Excess tax benefits related to stock based compensation (1)(43,977)(1,013,196)—
Foreign income rate differential160,370364,699206,470
U.S. tax credits(79,565)(109,501)(162,865)
Noncontrolling interests and redeemable noncontrolling interests adjustment31,85865,92021,964
Effect of U.S. tax law change (2)—722,646—
Bargain in purchase gain—20,211(31,055)
Other reconciling items9603,178785
Change in valuation allowance131,020718,584225,506
Provision for income taxes$57,837$31,546$26,698
(1)As of January 1, 2017, upon the adoption of ASU No. 2016-09, Improvements to Employee Share-based Payment Accounting, excess tax benefits from share-based award activity incurred from the prior and current years are reflected as a reduction of the provision for income taxes. The excess tax benefits result in an increase to our gross U.S. deferred tax assets that is offset by a corresponding increase to our valuation allowance.
(2)Due to the Tax Act, our U.S. deferred tax assets and liabilities as of December 31, 2017 were re-measured from 35% to 21%. The change in tax rate resulted in a decrease to our gross U.S. deferred tax assets which is offset by a corresponding decrease to our valuation allowance.

As of December 31, 2018, we had $7.30 billion of federal and $5.37 billion of state net operating loss carry-forwards available to offset future taxable income, which will not begin to significantly expire until 2024 for federal and 2028 for state purposes. A portion of these losses were generated by SolarCity prior to our acquisition in 2016 and, therefore, are subject to change of control provisions, which limit the amount of acquired tax attributes that can be utilized in a given tax year. We do not expect these change of control limitations to significantly impact our ability to utilize these attributes.

As of December 31, 2018, we had research and development tax credits of $256.1 million and $276.2 million for federal and state income tax purposes, respectively. If not utilized, the federal research and development tax credits will expire in various amounts beginning in 2024. However, the state research and development tax credits can be carried forward indefinitely. In addition, we have other general business tax credits of $126.8 million for federal income tax purposes, which will not begin to significantly expire until 2033.

Collectively, we had no foreign earnings as of December 31, 2018 and therefore was not subject to the mandatory repatriation tax provisions of the Tax Act. However, some of our foreign subsidiaries do have accumulated earnings. No deferred tax liabilities for foreign withholding taxes have been recorded relating to the earnings of our foreign subsidiaries since all such earnings are intended to be indefinitely reinvested. The amount of the unrecognized deferred tax liability associated with these earnings is immaterial.

Federal and state laws can impose substantial restrictions on the utilization of net operating loss and tax credit carry-forwards in the event of an “ownership change”, as defined in Section 382 of the Internal Revenue Code. We have determined that no significant limitation would be placed on the utilization of our net operating loss and tax credit carry-forwards due to prior ownership changes.

Uncertain Tax Positions

The changes to our gross unrecognized tax benefits were as follows (in thousands):

December 31, 2015$99,127
Increases in balances related to prior year tax positions28,677
Increases in balances related to current year tax positions62,805
Assumed uncertain tax positions through acquisition13,327
December 31, 2016203,936
Decrease in balances related to prior year tax positions(31,493)
Increases in balances related to current year tax positions84,352
Change in balances related to effect of U.S. tax law change(58,050)
December 31, 2017198,745
Decrease in balances related to prior year tax positions(6,347)
Increases in balances related to current year tax positions60,960
December 31, 2018$253,357

As of December 31, 2018, accrued interest and penalties related to unrecognized tax benefits are classified as income tax expense and were immaterial. Unrecognized tax benefits of $243.8 million, if recognized, would not affect our effective tax rate since the tax benefits would increase a deferred tax asset that is currently fully offset by a full valuation allowance.

We file income tax returns in the U.S., California and various state and foreign jurisdictions. We are currently under examination by the IRS for the years 2015 and 2016. Additional tax years within the period 2004 to 2017 remain subject to examination for federal income tax purposes, and tax years 2004 to 2017 remain subject to examination for California income tax purposes. All net operating losses and tax credits generated to date are subject to adjustment for U.S. federal and California income tax purposes. Tax years 2008 to 2017 remain subject to examination in other U.S. state and foreign jurisdictions.

The potential outcome of the current examination could result in a change to unrecognized tax benefits within the next twelve months. However, we cannot reasonably estimate possible adjustments at this time.

The U.S. Tax Court issued a decision in Altera Corp v. Commissioner related to the treatment of stock-based compensation expense in a cost-sharing arrangement. As this decision can be overturned upon appeal, we have not recorded any impact as of December 31, 2018. In addition, any potential tax benefits would increase our U.S. deferred tax asset, which is currently offset with a full valuation allowance.

Note 17 – Commitments and Contingencies

Non-Cancellable Leases

We have entered into various non-cancellable operating lease agreements for certain of our offices, manufacturing and warehouse facilities, retail and service locations, equipment, vehicles, solar energy systems and Supercharger sites, throughout the world. Included within the lease commitment table below are payments due under operating leases that have been accounted for as build-to-suit lease arrangements, which are included in property, plant and equipment on the consolidated balance sheets. Rent expense for the years ended December 31, 2018, 2017, and 2016 was $182.6 million, $177.7 million and $116.8 million, respectively.

We have entered into various agreements to lease equipment under capital leases up to 60 months. The equipment under the leases are collateral for the lease obligations and are included within property, plant and equipment on the consolidated balance sheets.

Future minimum commitments for leases as of December 31, 2018 were as follows (in thousands):

OperatingCapital
LeasesLeases
2019$275,654$416,952
2020256,931503,545
2021230,406506,197
2022182,91123,828
2023157,6624,776
Thereafter524,5905,938
Total minimum lease payments$1,628,1541,461,236
Less: Amounts representing interest not yet incurred122,340
Present value of capital lease obligations1,338,896
Less: Current portion345,714
Long-term portion of capital lease obligations$993,182

Build-to-Suit Lease Arrangement in Buffalo, New York

We have a build-to-suit lease arrangement with the Research Foundation for the State University of New York (the “SUNY Foundation”) where the SUNY Foundation will construct a solar cell and panel manufacturing facility, referred to as Gigafactory 2, with our participation in the design and construction, install certain utilities and other improvements and acquire certain manufacturing equipment designated by us to be used in the manufacturing facility. The SUNY Foundation covers (i) construction costs related to the manufacturing facility up to $350.0 million, (ii) the acquisition and commissioning of the manufacturing equipment in an amount up to $274.7 million and (iii) $125.3 million for additional specified scope costs, in cases (i) and (ii) only, subject to the maximum funding allocation from the State of New York; and we are responsible for any construction or equipment costs in excess of such amounts. The SUNY Foundation will own the manufacturing facility and the manufacturing equipment purchased by the SUNY Foundation. Following completion of the manufacturing facility, we will lease the manufacturing facility and the manufacturing equipment owned by the SUNY Foundation for an initial period of 10 years, with an option to renew, for $2.00 per year plus utilities. During the three months ended March 31, 2018, we began production at the manufacturing facility, although construction has not been fully completed as of December 31, 2018.

Under the terms of the build-to-suit lease arrangement, we are required to achieve specific operational milestones during the initial lease term; which include employing a certain number of employees at the manufacturing facility, within western New York and within the State of New York within specified periods following the completion of the manufacturing facility. We are also required to spend or incur $5.00 billion in combined capital, operational expenses and other costs in the State of New York within 10 years following the achievement of full production. On an annual basis during the initial lease term, as measured on each anniversary of the commissioning of the manufacturing facility, if we fail to meet these specified investment and job creation requirements, then we would be obligated to pay a $41.2 million “program payment” to the SUNY Foundation for each year that we fail to meet these requirements. Furthermore, if the arrangement is terminated due to a material breach by us, then additional amounts might become payable by us.

The non-cash investing and financing activities related to the arrangement during the years ended December 31, 2018 and 2017 amounted to $8.0 million and $86.1 million. The non-cash investing and financing activities related to the arrangement from the Acquisition Date through December 31, 2016 amounted to $5.6 million.

Environmental Liabilities

In connection with our factory located in Fremont, California, we are obligated to pay for the remediation of certain environmental conditions existing at the time we purchased the property from New United Motor Manufacturing, Inc. (“NUMMI”). In particular, we are responsible for the first $15.0 million of remediation costs, any remediation costs in excess of $30.0 million and any remediation costs incurred after 10 years from the purchase date. NUMMI is responsible for any remediation costs between $15.0 million and $30.0 million for up to 10 years after the purchase date.

Legal Proceedings

Securities Litigation Relating to SolarCity’s Financial Statements and Guidance

On March 28, 2014, a purported stockholder class action was filed in the U.S. District Court for the Northern District of California against SolarCity and two of its officers. The complaint alleges violations of federal securities laws and seeks unspecified compensatory damages and other relief on behalf of a purported class of purchasers of SolarCity’s securities from March 6, 2013 to March 18, 2014. After a series of amendments to the original complaint, the District Court dismissed the amended complaint and entered a judgment in our favor on August 9, 2016. The plaintiffs filed a notice of appeal, and on December 4, 2017, the Court heard oral argument on the appeal. On March 8, 2018, the Court upheld the District Court ruling of dismissal and judgment in our favor. The case is concluded.

Securities Litigation Relating to the SolarCity Acquisition

Between September 1, 2016 and October 5, 2016, seven lawsuits were filed in the Court of Chancery of the State of Delaware by purported stockholders of Tesla challenging our acquisition of SolarCity. Following consolidation, the lawsuit names as defendants the members of Tesla’s board of directors as then constituted and alleges, among other things, that board members breached their fiduciary duties in connection with the acquisition. The complaint asserts both derivative claims and direct claims on behalf of a purported class and seeks, among other relief, unspecified monetary damages, attorneys’ fees, and costs. On January 27, 2017, defendants filed a motion to dismiss the operative complaint. Rather than respond to the defendants’ motion, the plaintiffs filed an amended complaint. On March 17, 2017, defendants filed a motion to dismiss the amended complaint. On December 13, 2017, the Court heard oral argument on the motion. On March 28, 2018, the Court denied defendants’ motion to dismiss. Defendants filed a request for interlocutory appeal, but the Delaware Supreme Court denied that request, electing not to hear an appeal at this early stage of the case. Defendants filed their answer on May 18, 2018. The parties are proceeding with discovery. The case is set for trial in March 2020.

These plaintiffs and others filed parallel actions in the U.S. District Court for the District of Delaware on April 21, 2017. Those actions have been consolidated and are stayed pending the Chancery Court litigation. They include claims for violations of the federal securities laws and breach of fiduciary duties by Tesla’s board of directors. That action is stayed pending the Chancery Court litigation.

We believe that claims challenging the SolarCity acquisition are without merit and intend to defend against them vigorously. We are unable to estimate the possible loss or range of loss, if any, associated with these claims.

Securities Litigation Relating to Production of Model 3 Vehicles

On October 10, 2017, a purported stockholder class action was filed in the U.S. District Court for the Northern District of California against Tesla, two of its current officers, and a former officer. The complaint alleges violations of federal securities laws and seeks unspecified compensatory damages and other relief on behalf of a purported class of purchasers of Tesla securities from May 4, 2016 to October 6, 2017. The lawsuit claims that Tesla supposedly made materially false and misleading statements regarding the Company’s preparedness to produce Model 3 vehicles. Plaintiffs filed an amended complaint on March 23, 2018, and defendants filed a motion to dismiss on May 25, 2018. The court granted defendant’s motion to dismiss with leave to amend. Plaintiffs filed their amended complaint on September 28, 2018. We will file a motion to dismiss the amended complaint on February 15, 2019. The hearing on the motion to dismiss is set for March 1, 2019. We believe that the claims are without merit and intend to defend against this lawsuit vigorously. We are unable to estimate the possible loss or range of loss, if any, associated with this lawsuit.

On October 26, 2018, in a similar action, a purported stockholder class action was filed in the Superior Court of California in Santa Clara County against Tesla, Elon Musk and seven initial purchasers in an offering of debt securities by Tesla in August 2017. The complaint alleges misrepresentations made by Tesla regarding the number of Model 3 vehicles Tesla expected to produce by the end of 2017 in connection with such offering, and seeks unspecified compensatory damages and other relief on behalf of a purported class of purchasers of Tesla securities in such offering. Tesla thereafter removed the case to federal court. On January 22, 2019, plaintiff abandoned its effort to proceed in state court, instead filing an amended complaint against Tesla, Elon Musk and seven initial purchasers in the debt offering before the same judge in the U.S. District Court for the Northern District of California who is hearing the above-referenced earlier filed federal court case. On February 5, 2019, the Court stayed this new case pending a ruling on the motion to dismiss the complaint in the above earlier filed case. We believe that the claims are without merit and intend to defend against this lawsuit vigorously. We are unable to estimate the possible loss or range of loss, if any, associated with this lawsuit.

Litigation Relating to 2018 CEO Performance Award

On June 4, 2018, a purported Tesla stockholder filed a putative class and derivative action in the Delaware Court of Chancery against Mr. Musk and the members of Tesla’s board of directors as then constituted, alleging that such board members breached their fiduciary duties by approving the stock-based compensation plan. The complaint seeks, among other things, monetary damages and rescission or reformation of the stock-based compensation plan. On August 31, 2018, defendants filed a motion to dismiss the complaint; plaintiff filed its opposition brief on November 1, 2018 and defendants filed a reply brief on December 13, 2018. The hearing on the motion to dismiss is set for May 9, 2019. We believe the claims asserted in this lawsuit are without merit and intend to defend against them vigorously.

Securities Litigation related to Potential Going Private Transaction

Between August 10, 2018 and September 6, 2018, nine purported stockholder class actions were filed against Tesla and Elon Musk in connection with Elon Musk’s August 7, 2018 Twitter post that he was considering taking Tesla private. All of the suits are now pending in the United States District Court for the Northern District of California. Although the complaints vary in certain respects, they each purport to assert claims for violations of federal securities laws related to Mr. Musk’s statement and seek unspecified compensatory damages and other relief on behalf of a purported class of purchasers of Tesla’s securities. Plaintiffs filed their consolidated complaint on January 16, 2019 and added as defendants the members of Tesla’s board of directors. Defendants plan to file a motion to dismiss the complaint on or before March 7, 2019. The hearing on the motion to dismiss is tentatively set for June 20, 2019. We believe that the claims have no merit and intend to defend against them vigorously. We are unable to estimate the potential loss, or range of loss, associated with these claims.

Between October 17, 2018 and November 9, 2018, five derivative lawsuits were filed in the Delaware Court of Chancery against Mr. Musk and the members of Tesla’s board of directors as then constituted in relation to statements made and actions connected to a potential going private transaction. These cases have been stayed pending resolution of the stockholder class action. In addition to these cases, on October 25, 2018, another derivative lawsuit was filed in federal court in Delaware against Mr. Musk and the members of the Tesla board of directors as then constituted, and the parties have agreed to also stay this case pending resolution of the stockholder class action; the parties’ proposed stipulation regarding the stay is pending with the Court. We believe that the claims have no merit and intend to defend against them vigorously. The Company is unable to estimate the potential loss, or range of loss, associated with these claims.

Settlement with SEC related to Potential Going Private Transaction

On October 16, 2018, the U.S. District Court for the Southern District of New York entered a final judgment approving the terms of a settlement filed with the Court on September 29, 2018, in connection with the actions taken by the U.S. Securities and Exchange Commission (the “SEC”) relating to Elon Musk’s prior statement that he was considering taking Tesla private. Without admitting or denying any of the SEC’s allegations, and with no restriction on Mr. Musk’s ability to serve as an officer or director on the Board (other than as its Chair), among other things, we and Mr. Musk paid civil penalties of $20 million each and agreed that an independent director will serve as Chair of the Board for at least three years, and we appointed such an independent Chair of the Board and two additional independent directors to the Board, and further enhanced our disclosure controls and other corporate governance-related matters.

Certain Investigations and Other Matters

We receive requests for information from regulators and governmental authorities, such as the National Highway Traffic Safety Administration, the National Transportation Safety Board, the SEC, the Department of Justice (“DOJ”) and various state, federal and international agencies. We routinely cooperate with such regulatory and governmental requests.

In particular, the SEC has issued subpoenas to Tesla in connection with (a) Mr. Musk’s prior statement that he was considering taking Tesla private and (b) certain projections that we made for Model 3 production rates during 2017 and other public statements relating to Model 3 production. The DOJ has also asked us to voluntarily provide it with information about each of these matters and is investigating. Aside from the settlement with the SEC relating to Mr. Musk’s statement that he was considering taking Tesla private, there have not been any developments in these matters that we deem to be material, and to our knowledge no government agency in any ongoing investigation has concluded that any wrongdoing occurred. As is our normal practice, we have been cooperating and will continue to cooperate with government authorities. We cannot predict the outcome or impact of any ongoing matters. Should the government decide to pursue an enforcement action, there exists the possibility of a material adverse impact on our business, results of operation, prospects, cash flows, and financial position.

We are also subject to various other legal proceedings and claims that arise from the normal course of business activities. If an unfavorable ruling or development were to occur, there exists the possibility of a material adverse impact on our business, results of operations, prospects, cash flows, financial position and brand.

Indemnification and Guaranteed Returns

We are contractually obligated to compensate certain fund investors for any losses that they may suffer in certain limited circumstances resulting from reductions in U.S. Treasury grants or ITCs. Generally, such obligations would arise as a result of reductions to the value of the underlying solar energy systems as assessed by the U.S. Treasury Department for purposes of claiming U.S. Treasury grants or as assessed by the IRS for purposes of claiming ITCs or U.S. Treasury grants. For each balance sheet date, we assess and recognize, when applicable, a distribution payable for the potential exposure from this obligation based on all the information available at that time, including any guidelines issued by the U.S. Treasury Department on solar energy system valuations for purposes of claiming U.S. Treasury grants and any audits undertaken by the IRS. We believe that any payments to the fund investors in excess of the amounts already recognized by us, which were immaterial, for this obligation are not probable based on the facts known at the filing date.

The maximum potential future payments that we could have to make under this obligation would depend on the difference between the fair values of the solar energy systems sold or transferred to the funds as determined by us and the values that the U.S. Treasury Department would determine as fair value for the systems for purposes of claiming U.S. Treasury grants or the values the IRS would determine as the fair value for the systems for purposes of claiming ITCs or U.S. Treasury grants. We claim U.S. Treasury grants based on guidelines provided by the U.S. Treasury department and the statutory regulations from the IRS. We use fair values determined with the assistance of independent third-party appraisals commissioned by us as the basis for determining the ITCs that are passed-through to and claimed by the fund investors. Since we cannot determine future revisions to U.S. Treasury Department guidelines governing solar energy system values or how the IRS will evaluate system values used in claiming ITCs or U.S. Treasury grants, we are unable to reliably estimate the maximum potential future payments that it could have to make under this obligation as of each balance sheet date.

We are eligible to receive certain state and local incentives that are associated with renewable energy generation. The amount of incentives that can be claimed is based on the projected or actual solar energy system size and/or the amount of solar energy produced. We also currently participate in one state’s incentive program that is based on either the fair market value or the tax basis of solar energy systems placed in service. State and local incentives received are allocated between us and fund investors in accordance with the contractual provisions of each fund. We are not contractually obligated to indemnify any fund investor for any losses they may incur due to a shortfall in the amount of state or local incentives actually received.

Our lease pass-through financing funds have a one-time lease payment reset mechanism that occurs after the installation of all solar energy systems in a fund. As a result of this mechanism, we may be required to refund master lease prepayments previously received from investors. Any refunds of master lease prepayments would reduce the lease pass-through financing obligation.

Letters of Credit

As of December 31, 2018, we had $219.6 million of unused letters of credit outstanding.

Note 18 – Variable Interest Entity Arrangements

We have entered into various arrangements with investors to facilitate the funding and monetization of our solar energy systems and vehicles. In particular, our wholly owned subsidiaries and fund investors have formed and contributed cash and assets into various financing funds and entered into related agreements. We have determined that the funds are variable interest entities (“VIEs”) and we are the primary beneficiary of these VIEs by reference to the power and benefits criterion under ASC 810, Consolidation. We have considered the provisions within the agreements, which grant us the power to manage and make decisions that affect the operation of these VIEs, including determining the solar energy systems or vehicles and the associated customer contracts to be sold or contributed to these VIEs, redeploying solar energy systems or vehicles and managing customer receivables. We consider that the rights granted to the fund investors under the agreements are more protective in nature rather than participating.

As the primary beneficiary of these VIEs, we consolidate in the financial statements the financial position, results of operations and cash flows of these VIEs, and all intercompany balances and transactions between us and these VIEs are eliminated in the consolidated financial statements. Cash distributions of income and other receipts by a fund, net of agreed upon expenses, estimated expenses, tax benefits and detriments of income and loss and tax credits, are allocated to the fund investor and our subsidiary as specified in the agreements.

Generally, our subsidiary has the option to acquire the fund investor’s interest in the fund for an amount based on the market value of the fund or the formula specified in the agreements.

Upon the sale or liquidation of a fund, distributions would occur in the order and priority specified in the agreements.

Pursuant to management services, maintenance and warranty arrangements, we have been contracted to provide services to the funds, such as operations and maintenance support, accounting, lease servicing and performance reporting. In some instances, we have guaranteed payments to the fund investors as specified in the agreements. A fund’s creditors have no recourse to our general credit or to that of other funds. None of the assets of the funds had been pledged as collateral for their obligations.

The aggregate carrying values of the VIEs’ assets and liabilities, after elimination of any intercompany transactions and balances, in the consolidated balance sheets were as follows (in thousands):

December 31,December 31,
20182017
Assets
Current assets
Cash and cash equivalents$75,203$55,425
Restricted cash130,92733,656
Accounts receivable, net18,70218,204
Prepaid expenses and other current assets10,2629,018
Total current assets235,094116,303
Operating lease vehicles, net155,439337,089
Solar energy systems, leased and to be leased, net5,116,7285,075,321
Restricted cash, net of current portion65,26236,999
Other assets55,55429,555
Total assets$5,628,077$5,595,267
Liabilities
Current liabilities
Accounts payable$32$32
Accrued liabilities and other132,77451,652
Deferred revenue21,34559,412
Customer deposits—726
Current portion of long-term debt and capital leases662,988196,531
Total current liabilities817,139308,353
Deferred revenue, net of current portion177,451323,919
Long-term debt and capital leases, net of current portion1,237,707625,934
Other long-term liabilities26,40030,536
Total liabilities$2,258,697$1,288,742

Note 19 – Lease Pass-Through Financing Obligation

Through December 31, 2018, we had entered into eight transactions referred to as “lease pass-through fund arrangements”. Under these arrangements, our wholly owned subsidiaries finance the cost of solar energy systems with investors through arrangements contractually structured as master leases for an initial term ranging between 10 and 25 years. These solar energy systems are subject to lease or PPAs with customers with an initial term not exceeding 25 years. These solar energy systems are included within solar energy systems, leased and to be leased, net on the consolidated balance sheet.

The cost of the solar energy systems under lease pass-through fund arrangements as of December 31, 2018 and 2017 was $1.05 billion and $1.09 billion, respectively. The accumulated depreciation on these assets as of December 31, 2018 and 2017 was $66.1 million and $30.9 million, respectively. The total lease pass-through financing obligation as of December 31, 2018 was $111.9 million, of which $61.8 million was classified as a current liability. The total lease pass-through financing obligation as of December 31, 2017 was $134.8 million, of which $67.3 million was classified as a current liability. Lease pass-through financing obligation is included in accrued liabilities and other for the current portion and other long-term liabilities for the long-term portion on the consolidated balance sheet.

Under a lease pass-through fund arrangement, the investor makes a large upfront payment to the lessor, which is one of our subsidiaries, and in some cases, subsequent periodic payments. We allocate a portion of the aggregate investor payments to the fair value of the assigned ITCs, which is estimated by discounting the projected cash flow impact of the ITCs using a market interest rate and is accounted for separately (see Note 2, Summary of Significant Accounting Policies). We account for the remainder of the investor payments as a borrowing by recording the proceeds received as a lease pass-through financing obligation, which is repaid from the future customer lease payments and any incentive rebates. A portion of the amounts received by the investor is allocated to interest expense using the effective interest rate method.

The lease pass-through financing obligation is non-recourse once the associated solar energy systems have been placed in-service and the associated customer arrangements have been assigned to the investors. However, we are required to comply with certain financial covenants specified in the contractual agreements, which we had met as of December 31, 2018. In addition, we are responsible for any warranties, performance guarantees, accounting and performance reporting. Furthermore, we continue to account for the customer arrangements and any incentive rebates in the consolidated financial statements, regardless of whether the cash is received by us or directly by the investors.

As of December 31, 2018, the future minimum master lease payments to be received from investors, for each of the next five years and thereafter, were as follows (in thousands):

2019$42,775
202042,100
202141,147
202233,055
202326,152
Thereafter468,490
Total$653,719

For two of the lease pass-through fund arrangements, our subsidiaries have pledged its assets to the investors as security for its obligations under the contractual agreements.

Each lease pass-through fund arrangement has a one-time master lease prepayment adjustment mechanism that occurs when the capacity and the placed-in-service dates of the associated solar energy systems are finalized or on an agreed-upon date. As part of this mechanism, the master lease prepayment amount is updated, and we may be obligated to refund a portion of a master lease prepayment or entitled to receive an additional master lease prepayment. Any additional master lease prepayments are recorded as an additional lease pass-through financing obligation while any master lease prepayment refunds would reduce the lease pass-through financing obligation.

Note 20 – Defined Contribution Plan

We have a 401(k) savings plan that qualifies as a deferred salary arrangement under Section 401(k) of the Internal Revenue Code. Under the 401(k) savings plan, participating employees may elect to contribute up to 100% of their eligible compensation, subject to certain limitations. Participants are fully vested in their contributions. We did not make any contributions to the 401(k) savings plan during the years ended December 31, 2018, 2017 and 2016.

Note 21 – Related Party Transactions

Related party balances were comprised of the following (in thousands):

December 31,December 31,
20182017
Solar Bonds issued to related parties$100$100
Convertible senior notes due to related parties$2,674$2,519
Promissory notes due to related parties$—$100,000

The related party transactions were primarily from debt held by our CEO, SolarCity’s former CEO and SolarCity’s former Chief Technology Officer. During the year ended December 31, 2018, the promissory notes payable to such parties were fully repaid. Refer to Note 13, Long-Term Debt Obligations.

Our convertible senior notes are not re-measured at fair value (refer to Note 5, Fair Value of Financial Instruments). As of December 31, 2018 and 2017, the unpaid principal balance of convertible senior notes due to related parties is $3.0 million.

In November 2018, our CEO purchased from us 56,915 shares of our common stock in a private placement at a per share price equal to the last closing price of our stock prior to the execution of the purchase agreement for an aggregate $20.0 million.

Note 22 – Segment Reporting and Information about Geographic Areas

We have two operating and reportable segments: (i) automotive and (ii) energy generation and storage. The automotive segment includes the design, development, manufacturing, sales, and leasing of electric vehicles as well as sales of automotive regulatory credits. Additionally, the automotive segment is also comprised of services and other, which includes non-warranty after-sales vehicle services, sales of used vehicles, sales of electric vehicle components and systems to other manufacturers, retail merchandise, and sales by our acquired subsidiaries to third party customers. The energy generation and storage segment includes the design, manufacture, installation, sales, and leasing of solar energy generation and energy storage products. Our CODM does not evaluate operating segments using asset or liability information. The following table presents revenues and gross margins by reportable segment (in thousands):

Year Ended December 31,
201820172016
Automotive segment
Revenues$19,906,024$10,642,485$6,818,738
Gross profit$3,851,673$1,980,759$1,596,195
Energy generation and storage segment
Revenues$1,555,244$1,116,266$181,394
Gross profit$190,348$241,728$3,062

The following table presents revenues by geographic area based on the sales location of our products (in thousands):

Year Ended December 31,
201820172016
United States$14,871,507$6,221,439$4,200,706
China1,757,1472,027,0621,065,255
Netherlands965,596330,343305,184
Norway812,730823,081335,572
Other3,054,2882,356,8261,093,415
Total$21,461,268$11,758,751$7,000,132

The following table presents long-lived assets by geographic area (in thousands):

December 31,December 31,
20182017
United States$16,741,409$15,587,979
International860,064787,033
Total$17,601,473$16,375,012

Note 23 – Restructuring and Other

During 2018, we carried-out certain restructuring actions in order to reduce costs and improve efficiency and recognized $36.6 million of employee termination expenses and estimated losses from sub-leasing a certain facility. The employee termination cash expenses of $27.3 million were substantially paid by the end of 2018, while the remaining amounts were non-cash. Also included within restructuring and other activities was $55.2 million of expenses (materially all of which were non-cash) from restructuring the energy generation and storage segment, which comprised of disposals of certain tangible assets, the shortening of the useful life of a trade name intangible asset and a contract termination penalty. In addition, we concluded that a small portion of the IPR&D asset is not commercially feasible. Consequently, we recognized an impairment loss of $13.3 million (see Note 4, Intangible Assets).

In October 2018, a final court order was entered approving the terms of a settlement in connection with the SEC’s legal actions relating to Elon Musk’s prior consideration during the third quarter of 2018 of a take-private proposal for Tesla. Consequently, we recognized settlement and legal expenses of $30.1 million in the year ended December 31, 2018 (see Note 17, Commitments and Contingencies). These expenses were substantially paid by the end of 2018.

Note 24 – Subsequent Events

On February 3, 2019, we entered into a definitive agreement to acquire Maxwell Technologies, Inc. (“Maxwell”). Pursuant to the definitive agreement, each issued and outstanding share of Maxwell common stock will be exchanged for a fraction of a share of our common stock equal to the lesser of: (i) $4.75 divided by an average value of one share of our common stock as calculated pursuant to the definitive agreement, and (ii) 0.0193, provided that cash will be paid in lieu of any fractional shares of our common stock. The closing of the transaction is subject to the successful tender of a specified minimum number of Maxwell common stock in an exchange offer to be commenced by our wholly-owned subsidiary, certain regulatory approvals and customary closing conditions.

Note 25 – Quarterly Results of Operations (Unaudited)

The following table presents selected quarterly results of operations data for the years ended December 31, 2018 and 2017 (in thousands, except per share amounts):

Three Months Ended
March 31June 30September 30December 31
2018
Total revenues$3,408,751$4,002,231$6,824,413$7,225,873
Gross profit$456,526$618,930$1,523,665$1,442,900
Net (loss) income attributable to common stockholders$(709,551)$(717,539)$311,516$139,483
Net (loss) income per share of common stock attributable to common stockholders, basic$(4.19)$(4.22)$1.82$0.81
Net (loss) income per share of common stock attributable to common stockholders, diluted$(4.19)$(4.22)$1.75$0.78
2017
Total revenues$2,696,270$2,789,557$2,984,675$3,288,249
Gross profit$667,946$666,615$449,140$438,786
Net loss attributable to common stockholders$(330,277)$(336,397)$(619,376)$(675,350)
Net loss per share of common stock attributable to common stockholders, basic$(2.04)$(2.04)$(3.70)$(4.01)
Net loss per share of common stock attributable to common stockholders, diluted$(2.04)$(2.04)$(3.70)$(4.01)

Previous: Item 7A. QUANTITATIVE AND QUALITATIVE DISCLOSURES ABOUT MARKET RISK · Next: Item 9. CHANGES IN AND DISAGREEMENTS WITH ACCOUNTANTS ON ACCOUNTING AND FINANCIAL DISCLOSURE