Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Principles of Consolidation The consolidated financial statements include the financial statements of the Company and its wholly-owned subsidiaries. All significant intercompany balances and transactions have been eliminated in consolidation. Leases The Company is a lessee in noncancelable (1) operating leases, primarily related to sale/leaseback transactions with financial institutions for deployment of the Company’s products at certain customer sites, and (2) finance leases, also primarily related to sale/leaseback transactions with financial institutions for similar commercial purposes. The Company accounts for leases in accordance with Accounting Standards Codification (ASC) Topic 842, Leases (ASC Topic 842), as amended, which was adopted in 2018 (see Recently Adopted Accounting Standards). The Company determines if an arrangement is or contains a lease at contract inception. The Company recognizes a right of use (ROU) asset and a lease liability (i.e. finance obligation) at the lease commencement date. For operating leases, the lease liability is initially measured at the present value of the unpaid lease payments at the lease commencement date. For finance leases, the lease liability is initially measured in the same manner and date as for operating leases and is subsequently measured at amortized cost using the effective interest method. Key estimates and judgments include how the Company determines (1) the discount rate it uses to discount the unpaid lease payments to present value, (2) the lease term and (3) the lease payments. · ASC Topic 842 requires a lessee to discount its unpaid lease payments using the interest rate implicit in the lease or, if that rate cannot be readily determined, its incremental borrowing rate. Generally, the Company cannot determine the interest rate implicit in the lease because it does not have access to the lessor’s estimated residual value or the amount of the lessor’s deferred initial direct costs. Therefore, the Company generally uses its incremental borrowing rate as the discount rate for the lease. The Company’s incremental borrowing rate for a lease is the rate of interest it would have to pay on a collateralized basis to borrow an amount equal to the lease payments under similar terms. · The lease term for all of the Company’s leases includes the noncancelable period of the lease, plus any additional periods covered by either a Company option to extend (or not to terminate) the lease that the Company is reasonably certain to exercise, or an option to extend (or not to terminate) the lease controlled by the lessor. · Lease payments included in the measurement of the lease liability comprise fixed payments, and the exercise price of a Company option to purchase the underlying asset if the Company is reasonably certain to exercise the option. The ROU asset is initially measured at cost, which comprises the initial amount of the lease liability adjusted for lease payments made at or before the lease commencement date, plus any initial direct costs incurred less any lease incentives received. For operating leases, the ROU asset is subsequently measured throughout the lease term at the carrying amount of the lease liability, plus initial direct costs, plus (minus) any prepaid (accrued) lease payments, less the unamortized balance of lease incentives received. Lease expense for lease payments is recognized on a straight-line basis over the lease term. For finance leases, the ROU asset is subsequently amortized using the straight-line method from the lease commencement date to the earlier of the end of the useful life of the underlying asset or the end of the lease term unless the lease transfers ownership of the underlying asset to the Company or the Company is reasonably certain to exercise an option to purchase the underlying asset. In those cases, the ROU asset is amortized over the useful life of the underlying asset. Amortization of the ROU asset is recognized and presented separately from interest expense on the lease liability. The Company’s leases do not contain variable lease payments. ROU assets for operating and finance leases are periodically reviewed for impairment losses. The Company uses the long-lived assets impairment guidance in ASC Subtopic 360-10, Property, Plant, and Equipment – Overall , to determine whether an ROU asset is impaired, and if so, the amount of the impairment loss to recognize. No impairment losses have been recognized to date. The Company monitors for events or changes in circumstances that require a reassessment of one of its leases. When a reassessment results in the remeasurement of a lease liability, a corresponding adjustment is made to the carrying amount of the corresponding ROU asset. Operating and finance lease ROU assets are presented within leased property, net on the consolidated balance sheets. The current portion of operating and finance lease liabilities is included in finance obligations within current liabilities and the long-term portion is presented in finance obligations within noncurrent liabilities on the consolidated balance sheets. The Company has elected not to recognize ROU assets and lease liabilities for short-term leases that have a lease term of 12 months or less. The Company has elected to apply the short-term lease recognition and measurement exemption for other classes of leased assets. The Company recognizes the lease payments associated with its short-term leases as an expense on a straight-line basis over the lease term. Revenue Recognition The Company enters into contracts that may contain one or a combination of fuel cell systems and infrastructure, installation, maintenance, spare parts, fuel delivery and other support services. Contracts containing fuel cell systems and related infrastructure may be sold or provided to customers under a Power Purchase Agreement (PPA), discussed further below. The Company does not include a right of return on its products other than rights related to standard warranty provisions that permit repair or replacement of defective goods. The Company accrues for anticipated standard warranty costs at the same time that revenue is recognized for the related product, or when circumstances indicate that warranty costs will be incurred, as applicable. Only a limited number of fuel cell units are under standard warranty. Revenue is measured based on the transaction price specified in a contract with a customer, subject to the allocation of the transaction price to distinct performance obligations as discussed below. The Company recognizes revenue when it satisfies a performance obligation by transferring control over a product or service to a customer. The Company accounts for each distinct performance obligation within its arrangements as a distinct unit of accounting if the items under the performance obligation have value to the customer on a standalone basis. The Company considers a performance obligation to be distinct and have a standalone value if the customer can benefit from the good or service either on its own or together with other resources readily available to the customer and the Company’s promise to transfer the goods or service to the customer is separately identifiable from other promises in the contract. The Company allocates revenue to each distinct performance obligation based on relative standalone selling prices. Payment terms for sales of fuel cells, infrastructure and service to customers are typically 30 to 90 days. Sale/leaseback transactions with financial institutions are invoiced and collected upon transaction closing. Service is prepaid upfront in a majority of the arrangements. The Company does not adjust the transaction price for a significant financing component when the performance obligation is expected to be fulfilled within a year. The Company presents the provision for common stock warrants within each revenue-related line item on the consolidated statements of operations. This presentation reflects a discount that those common stock warrants represent, and therefore revenue is net of these non-cash charges. The provision of common stock warrants is allocated to the relevant revenue-related line items based upon the expected mix of the revenue for each respective contract. Nature of goods and services The following is a description of principal activities from which the Company generates its revenue. (i) Revenue from sales of fuel cell systems and related infrastructure represents sales of our GenDrive units, GenSure stationary backup power units, as well as hydrogen fueling infrastructure. The Company considers comparable list prices, as well as historical average pricing approaches to determine standalone selling prices for GenDrive fuel cells. The Company uses observable evidence from similar products in the market to determine standalone selling prices for GenSure stationary backup power units and hydrogen fueling infrastructure. The determination of standalone selling prices of the Company’s performance obligations requires significant judgment, including continual assessment of pricing approaches and available observable evidence in the market. Once relative standalone selling prices are determined, the Company proportionately allocates the transaction price to each performance obligation within the customer arrangement. The allocated transaction price related to fuel cell systems and spare parts is recognized as revenue at a point in time which usually occurs at shipment (and occasionally upon delivery). Revenue on hydrogen infrastructure installations is generally recognized at the point at which transfer of control passes to the customer, which usually occurs upon customer acceptance of the hydrogen infrastructure. In certain instances, control on hydrogen infrastructure installations transfers to the customer over time, and the related revenue is recognized over time as the performance obligation is satisfied. The Company uses an input method to determine the amount of revenue to recognize during each reporting period based on the Company’s efforts to satisfy the performance obligation. (ii) Revenue from services performed on fuel cell systems and related infrastructure represents revenue earned on our service and maintenance contracts and sales of spare parts. The transaction price allocated to services as discussed above is generally recognized as revenue over time on a straight-line basis over the expected service period. In substantially all of its commercial transactions, the Company sells extended maintenance contracts that generally provide for a five to ten year service period from the date of product installation. Services include monitoring, technical support, maintenance and services that provide for 97% to 98% uptime of the fleet. These services are accounted for as a separate performance obligation, and accordingly, revenue generated from these transactions, subject to the proportional allocation of transaction price, is deferred and recognized in income over the term of the contract, generally on a straight-line basis. Additionally, the Company may enter into annual service and extended maintenance contracts that are billed monthly. Revenue generated from these transactions is recognized in income on a straight-line basis over the term of the contract. Costs are recognized as incurred over the term of the contract. Sales of spare parts are included within service revenue on the consolidated statements of operations. When costs are projected to exceed revenues over the life of the extended maintenance contract, an accrual for loss contracts is recorded. Costs are estimated based upon historical experience and consider the estimated impact of the Company’s cost reduction initiatives. The actual results may differ from these estimates. Upon expiration of the extended maintenance contracts, customers either choose to extend the contract or switch to purchasing spare parts and maintaining the fuel cell systems on their own. (iii) Revenue from PPAs primarily represents payments received from customers who make monthly payments to access the Company’s GenKey solution. When fuel cell systems and related infrastructure are provided to customers through a PPA, revenues associated with these agreements are treated as rental income and recognized on a straight-line basis over the life of the agreements. In conjunction with entering into a PPA with a customer, the Company may enter into sale/leaseback transactions with third-party financial institutions, whereby the fuel cells, a majority of the related infrastructure and, in some cases, service are sold to the third-party financial institution and leased back to the Company through either an operating or finance lease. Certain of the Company’s sale/leaseback transactions with third-party financial institutions are required to be accounted for as finance leases. As a result, no upfront revenue was recognized at the closing of these transactions and a finance obligation for each lease was established. The fuel cell systems and related infrastructure that are provided to customers through these PPAs are considered leased property on the consolidated balance sheets. Costs to service the leased property, depreciation of the leased property, and other related costs are considered cost of PPA revenue on the consolidated statements of operations. Interest cost associated with finance leases is presented within interest and other expense, net on the consolidated statements of operations. The Company also has sale/leaseback transactions with financial institutions, which were required to be accounted for as an operating lease. The Company has rental expense associated with these sale/leaseback agreements with financial institutions. Rental expense is recognized on a straight-line basis over the life of the agreements and is characterized as cost of PPA revenue on the consolidated statements of operations. The Company adopted ASC Topic 842, effective January 1, 2018. As part of the adoption, the Company elected the practical expedient to not separate lease and non-lease components (i.e., maintenance services) within its rental income related to all PPA-related assets. To recognize revenue, the Company, as lessee, is required to determine whether each sale/leaseback arrangement meets operating lease criteria. As part of the assessment of these criteria, the Company estimates certain key inputs to the associated calculations such as: 1) discount rate it uses to discount the unpaid lease payments to present value and 2) useful life of the underlying asset(s): · ASC Topic 842 requires a lessee to discount its unpaid lease payments using the interest rate implicit in the lease or, if that rate cannot be readily determined, its incremental borrowing rate. Generally, the Company cannot determine the interest rate implicit in its leases because it does not have access to the lessor’s estimated residual value or the amount of the lessor’s deferred initial direct costs. Therefore, the Company generally uses its incremental borrowing rate to estimate the discount rate for each lease. · In order for a lease to be classified as an operating lease, the lease term cannot exceed 75% (major part) of the estimated useful life of the leased asset. The average estimated useful life of the fuel cells is 10 years, and the average estimated useful life of the hydrogen infrastructure is 20 years. These estimated useful lives are compared to the term of each lease to ensure that 75% of the estimated useful life of the assets is not exceeded which allows the Company to meet the operating lease criteria. (iv) Revenue associated with fuel delivered to customers represents the sale of hydrogen to customers that has been purchased by the Company from a third party or generated on site. The Company purchases hydrogen fuel from suppliers in certain cases (and produces hydrogen onsite) and sells to its customers upon delivery. Revenue and cost of revenue related to this fuel is recorded as dispensed and is included in the respective “Fuel delivered to customers” lines on the consolidated statements of operations. Contract costs The Company expects that incremental commission fees paid to employees as a result of obtaining sales contracts are recoverable and therefore the Company capitalizes them as contract costs. Capitalized commission fees are amortized on a straight-line basis over the period of time over which the transfer of goods or services to which the assets relate occur, typically ranging from 5 to 10 years. Amortization of the capitalized commission fees is included in selling, general, and administrative expenses. The Company recognizes the incremental costs of obtaining contracts as an expense when incurred if the amortization period of the assets that the Company otherwise would have recognized is one year or less. These costs are included in selling, general, and administrative expenses. Cash Equivalents For purposes of the consolidated statements of cash flows, the Company considers all highly-liquid debt instruments with original maturities of three months or less to be cash equivalents. At December 31, 2019 and 2018, cash equivalents consist of money market accounts. The Company’s cash and cash equivalents are deposited with financial institutions located in the U.S. and may at times exceed insured limits. Common Stock Warrant Accounting The Company accounts for common stock warrants as either derivative liabilities or as equity instruments depending on the specific terms of the respective warrant agreements. Derivative Liabilities Registered common stock warrants that require the issuance of registered shares upon exercise and do not sufficiently preclude an implied right to cash settlement are accounted for as derivative liabilities. We currently classify these derivative warrant liabilities on the consolidated balance sheet as a long-term liability, which are revalued at each balance sheet date subsequent to the initial issuance, using the Black-Scholes pricing model. This pricing model, which is based, in part, upon unobservable inputs for which there is little or no market data, requires the Company to develop its own assumptions. Changes in the fair value of the warrants are reflected in the consolidated statements of operations as change in fair value of common stock warrant liability. Accounts Receivable Accounts receivable are stated at the amount billed or billable to customers and are ordinarily due between 30 and 60 days after the issuance of the invoice. Receivables are reserved or written off based on individual credit evaluation and specific circumstances of the customer. The allowance for doubtful accounts and related receivable are reduced when the amount is deemed uncollectible. As of both December 31, 2019, and 2018, the allowance for doubtful accounts was $249 thousand. Inventory Inventories are valued at the lower of cost, determined on a first-in, first-out basis, and net realizable value. All inventory, including spare parts inventory held at service locations, is not relieved until the customer has received the product, at which time the risks and rewards of ownership have transferred. Property, Plant and Equipment Property, plant and equipment are originally recorded at cost or, if acquired as part of business combination, at fair value. Maintenance and repairs are expensed as costs are incurred. Depreciation on plant and equipment, which includes depreciation on the Company’s primary manufacturing facility, which is accounted for as a financing obligation, is calculated on the straight-line method over the estimated useful lives of the assets. The Company records depreciation and amortization over the following estimated useful lives: Leasehold improvements 5 ‑ 10 years Software, machinery and equipment 1 ‑ 15 years Gains and losses resulting from the sale of property and equipment are recorded in current operations. Leased Property Leased property primarily consists of the cost of assets deployed related to finance leases. Depreciation expense is recorded on a straight-line basis over the shorter of the lease term or the estimated useful life of the asset, generally six to seven years, and is included in cost of revenue for PPAs in the consolidated statements of operations. Impairment of Long-Lived Assets Long-lived assets, such as property, plant, and equipment, leased property and purchased intangibles subject to amortization, are reviewed for potential impairment whenever events or changes in circumstances indicate that the carrying amount of an asset or asset group may not be recoverable. Recoverability of assets to be held and used is measured by a comparison of the carrying amount of an asset or asset group to estimated undiscounted future cash flows expected to be generated by the asset or asset group. If the carrying amount of an asset or asset group exceeds its estimated undiscounted future cash flows, an impairment charge is recognized by the amount by which the carrying amount of the asset or asset group exceeds the fair value of the asset or asset group. Fair value is determined through various valuation techniques, including discounted cash flow models, quoted market values and third-party independent appraisals, as considered necessary. Assets to be disposed of and considered held for sale would be separately presented in the consolidated balance sheet and reported at the lower of the carrying amount or fair value less costs to sell, and are no longer depreciated. The assets and liabilities of a disposal group classified as held for sale would be presented separately in the appropriate asset and liability sections of the consolidated balance sheet. Goodwill Goodwill is an asset representing the future economic benefits arising from other assets acquired in a business combination that are not individually identified and separately recognized. Goodwill is reviewed for impairment at least annually. The Company has the option to perform a qualitative assessment to determine whether it is more-likely-than-not that the fair value of a reporting unit is less than its carrying amount prior to performing the two-step goodwill impairment test. If this is the case, the two-step goodwill impairment test is required. If it is more-likely-than-not that the fair value of a reporting unit is greater than its carrying amount, the two-step goodwill impairment test is not required. The Company performs an impairment review of goodwill on an annual basis at December 1, and when a triggering event is determined to have occurred between annual impairment tests. For the years ended December 31, 2019, 2018, and 2017, the Company performed a qualitative assessment of goodwill for its single reporting unit based on multiple factors including market capitalization and determined that it is not more likely than not that the fair value of its reporting unit is less than the carrying amount. Intangible Assets Intangible assets consist of acquired technology, customer relationships and trademarks, and are amortized using a straight-line method over their useful lives of 5 - 10 years. Additionally, the intangible assets are reviewed for impairment when certain triggering events occur. Product Warranty Reserve Aside from when included in the sale of an extended maintenance contract, the Company provides a one to two year standard product warranty to customers from date of installation of GenDrive units, and the GenSure sales generally include a two year standard product warranty. We currently estimate the costs of satisfying warranty claims based on an analysis of past experience and provide for future claims in the period the revenue is recognized. Factors that affect our warranty liability include the number of installed units, estimated material costs, estimated travel, and labor costs. The warranty reserve is included within the other current liabilities on the consolidated balance sheet. Equity Instruments Common stock warrants that meet certain applicable requirements of ASC Subtopic 815-40, Derivatives and Hedging – Contracts in Entity’s Own Equity , and other related guidance, including the ability of the Company to settle the warrants without the issuance of registered shares or the absence of rights of the grantee to require cash settlement, are accounted for as equity instruments. The Company classifies these equity instruments within additional paid-in capital on the consolidated balance sheets. Common stock warrants accounted for as equity instruments represent the warrants issued to Amazon and Walmart as discussed in Note 13, Warrant Transaction Agreements. The Company early-adopted FASB Accounting Standards Update 2019-08, Compensation – Stock Compensation (Topic 718) and Revenue from Contracts with Customers (Topic 606) (ASU 2019-08), which requires entities to measure and classify share-based payment awards granted to a customer by applying the guidance under Topic 718. The Company adopted ASU 2019-08 as of January 1, 2019. As a result, the amount recorded as a reduction of revenue will be measured based on the grant-date fair value of the warrants. Previously, this amount was measured based on vesting date fair value with estimates of fair value determined at each financial reporting date for unvested warrant shares considered to be probable of vesting. Except for the third tranche, all existing unvested warrants are using a measurement date January 1, 2019, the adoption date, in accordance with the transition requirements of ASU 2019-08. For the third tranche, the exercise price will be determined once the second tranche vests. The measurement date will be determined at that time. As a result of the adoption of ASU 2019-08 in the fourth quarter of 2019, applied with an effective date of January 1, 2019, the Company’s unaudited condensed consolidated financial information for the quarterly periods ended March 31, 2019, June 30, 2019, and September 30, 2019, has been revised. Amounts related to prior years were not impacted by the adoption of ASU 2019-08. The following table summarizes the impact of ASU 2019-08 adoption, as a reduction of revenue, by quarter on the consolidated statement of operations (in thousands): Three months ended December 31, September 30, June 30, March 31, 2019 2019 2019 2019 Total Warrant expense, pre adoption $ (2,807) $ (4,583) $ (1,483) $ (4,179) $ (13,052) Adjustment — 3,087 466 2,986 6,539 Warrant expense, post adoption (2,807) (1,496) (1,017) (1,193) (6,513) The Company uses the Black-Scholes pricing model, which is based, in part, upon unobservable inputs for which there is little or no market data, requiring the Company to develop its own assumptions. The Company estimates the fair value of unvested warrant shares, considered to be probable of vesting. Based on this estimated fair value, the Company determines the amount of warrant expense, which is recorded as a reduction of revenue on the consolidated statement of operations. In order to calculate warrant expense, the Company is required to make certain assumptions of key inputs to the Black-Scholes valuation model such as volatility and risk-free interest rate. Redeemable Preferred Stock We account for redeemable preferred stock as temporary equity in accordance with applicable accounting guidance in FASB ASC Topic 480, Distinguishing Liabilities from Equity . Dividends on the redeemable preferred stock are accounted for as an increase in the net loss attributable to common stockholders. Income Taxes Income taxes are accounted for under the asset and liability method. Deferred tax assets and liabilities are recognized for the future tax consequences attributable to differences between the financial statement carrying amounts of existing assets and liabilities and their respective tax basis and operating loss and tax credit carryforwards. Deferred tax assets and liabilities are measured using enacted tax rates expected to apply to taxable income in the years in which those temporary differences are expected to be recovered or settled. The effect on deferred tax assets and liabilities of a change in tax rates is recognized in the period that includes the enactment date. A valuation allowance is recorded to reduce the carrying amounts of deferred tax assets if it is more likely than not that such assets will not be realized. The Company accounts for uncertain tax positions in accordance with FASB ASC No. 740-10-25, Income Taxes-Overall-Recognition . The Company recognizes in its consolidated financial statements the impact of a tax position only if that position is more likely than not to be sustained on audit, based on the technical merits of the position. Foreign Currency Translation Foreign currency translation adjustments arising from conversion of the Company’s foreign subsidiary’s financial statements to U.S. dollars for reporting purposes are included in accumulated other comprehensive income in stockholders’ equity on the consolidated balance sheets. Transaction gains and losses resulting from the effect of exchange rate changes on transactions denominated in currencies other than the functional currency of the Company’s operations give rise to realized foreign currency transaction gains and losses, and are included in interest and other income and interest and other expense, respectively, in the consolidated statements of operations. Research and Development Costs related to research and development activities by the Company are expensed as incurred. Stock-Based Compensation The Company maintains employee stock-based compensation plans, which are described more fully in Note 15, Employee Benefit Plans. Stock-based compensation represents the cost related to stock-based awards granted to employees and directors. The Company measures stock-based compensation cost at grant-date, based on the fair value of the award, and recognizes the cost as expense on a straight-line basis over the option’s requisite service period. The Company estimates the fair value of stock-based awards using a Black-Scholes valuation model. Stock-based compensation expense is recorded in cost of revenue associated with sales of fuel cell systems and related infrastructure, cost of revenue for services performed on fuel cell systems and related infrastructure, research and development expense and selling, general and administrative expenses in the consolidated statements of operations based on the employees’ respective function. The Company records deferred tax assets for awards that result in deductions on the Company’s income tax returns, based upon the amount of compensation cost recognized and the Company's statutory tax rate. Differences between the deferred tax assets recognized for financial reporting purposes and the actual tax deduction reported on the Company's income tax return are recorded in the income statement. No tax benefit or expense for stock-based compensation has been recorded during the years ended December 31, 2019, 2018 and 2017 since the Company remains in a net operating loss (NOL) position. Convertible Senior Notes $100 In March 2018, the Company issued $100.0 million in aggregate principal amount of 5.5% Convertible Senior Notes due on March 15, 2023. The Company accounts for the $100 $40 In September 2019, the Company issued The Company accounts for the issued $40 Use of Estimates The consolidated financial statements of the Company have been prepared in conformity with U.S. generally accepted accounting principles, which require management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the consolidated financial statements and the reported amounts of revenues and expenses during the reporting period. Actual results could differ from those estimates. Reclassifications Reclassifications are made, whenever necessary, to prior period financial statements to conform to the current period presentation. Subsequent Events The Company evaluates subsequent events at the date of the balance sheet as well as conditions that arise after the balance sheet date but before the consolidated financial statements are issued. The effects of conditions that existed at the balance sheet date are recognized in the consolidated financial statements. Events and conditions arising after the balance sheet date but before the consolidated financial statements are issued are evaluated to determine if disclosure is required to keep the consolidated financial statements from bei |