Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation The consolidated financial statements have been prepared in conformity with U.S. GAAP, and pursuant to the rules and regulations of the Securities and Exchanges Commission, or SEC. The consolidated financial statements include the accounts of ViewRay, Inc. and its wholly-owned subsidiary, ViewRay Technologies, Inc. All inter-company accounts and transactions have been eliminated in consolidation. Effective January 1, 2019, the Company adopted the Financial Accounting Standards Board (FASB) Accounting Standards Codification (ASC) Topic 842, or Topic 842, Leases, Use of Estimates The preparation of the consolidated financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions that affect the amounts reported and disclosed in the consolidated financial statements and accompanying notes. Such estimates include, but are not limited to, allocation of revenue to multiple performance obligations within an arrangement, inventory write-downs to reflect net realizable value, assumptions used in the valuation of stock-based awards and warrant liability, and valuation allowances against deferred tax assets. Actual results could differ from these estimates. Cash and Cash Equivalents The Company considers all highly liquid investments purchased with an original maturity of three months or less to be cash equivalents. The Company deposits its cash primarily in checking and money market accounts. Restricted Cash At December 31, 2019 and 2018, the Company had an aggregate of $0.9 million of outstanding letters of credit related to its operating leases and its contractual obligations with distributors and customers. The letters of credit are collateralized by a restricted cash deposit account, which is presented as part of noncurrent assets on the balance sheets because the Company is not certain when the restriction will be lifted on the collateralized letters of credit. At December 31, 2019 and 2018, no amounts were drawn on the letters of credit. The restricted cash balance as of December 31, 2019 and 2018 also includes collateral of $0.5 million and $1.0 million, respectively, for credit card accounts. Concentration of Credit Risk, Other Risks and Uncertainties Financial instruments that potentially subject the Company to concentrations of credit risk consist primarily of cash and cash equivalents and accounts receivable. Cash and cash equivalents are deposited in checking and money market accounts with various financial institutions. At times, cash balances may be in excess of the amounts insured by the Federal Deposit Insurance Corporation. Management believes the financial risk associated with these balances is minimal and has not experienced any losses to date. The Company performs periodic credit evaluations of its customers’ financial condition and generally requires deposits from its customers. The Company’s accounts receivable were derived from billings to customers. The Company’s customers representing greater than 10% of accounts receivable or revenue for the periods presented were as follows: Revenue Accounts Receivables Year Ended December 31, December 31, Customers 2019 2018 2017 2019 2018 Customer A 16% 34% Customer B 17% 25% Customer C 15% Customer D 23% Customer E 22% Customer F 19% Customer G 16% Customer H 14% 15% Customer I 17% Customer J 16% Customer K 14% Customer L 10% The Company’s future results of operations involve a number of risks and uncertainties. Factors that could affect the Company’s future operating results and cause actual results to vary materially from expectations include, but are not limited to, rapid technological change, continued acceptance of MRIdian, competition from substitute products and larger companies, protection of proprietary technology, ability to maintain distributor relationships and dependence on key individuals. Furthermore, new products to be developed by the Company require approval from the FDA or other international regulatory agencies prior to commercial sales. There can be no assurance that the Company’s future products will receive the necessary clearances. The Company relies on a concentrated number of suppliers to manufacture essentially all of the components used in MRIdian. The Company’s suppliers may encounter problems during manufacturing due to a variety of reasons, including failure to comply with applicable regulations, including the FDA’s Quality System Regulation, equipment malfunction and environmental factors, any of which could delay or impede our ability to meet demand. Accounts Receivables and Allowance for Doubtful Accounts Accounts receivable are recorded at the invoiced amount, net of any allowance for doubtful accounts, and do not bear interest. The allowance for doubtful accounts, if any, is based on the assessment of the collectability of customer accounts. There was no allowance for doubtful accounts recorded at December 31, 2019 and 2018. Fair Value of Financial Instruments Financial instruments consist of cash and cash equivalents, accounts receivable, restricted cash, prepaid expenses and other current assets, accounts payable, accrued liabilities, warrant liability and long-term debt. Cash equivalents are stated at amortized cost, which approximates fair value at the balance sheet dates, due to the short period of time to maturity. Accounts receivable, prepaid expenses and other current assets, accounts payable, accrued liabilities current portion of long-term debt are stated at their carrying value, which approximates fair value due to the short time to the expected receipt or payment date. The warrant liability is carried at fair value. The carrying amount of the Company’s long-term debt approximates its fair value as the stated interest rate approximates market rates currently available to the Company. Inventory and Deposits on Purchased Inventory Inventory consists of purchased components for assembling MRIdian systems and other direct and indirect costs associated with MRIdian system installation. Inventory is stated at the lower of cost or net realizable value. All inventories expected to be placed in service during the normal operating cycle of the Company for the delivery and assembly of MRIdian systems, including items expected to be on hand for more than one year, are classified as current assets. The Company reduces the carrying value of its inventory for the difference between cost and net realizable value and records a charge to cost of product revenues. There was no lower of cost and net realizable value adjustment during the year ended December 31, 2019. The Company recorded an inventory lower of cost and net realizable value adjustment of $0.3 million and $0.9 million during the years ended December 31, 2018 and 2017, respectively. The Company records inventory items which have been paid for but not yet received and for which title has not yet transferred to the Company as deposits on purchased inventory. Deposits on purchased inventory are included within current assets as the related inventory items are expected to be received and used in MRIdian systems within the Company’s normal operating cycle. The Company assesses the recoverability of deposits on purchased inventory based on credit assessments of the vendors and their history supplying these assets. At December 31, 2019, the Company did not have any instances whereby deposits for purchased inventory were written off or the purchased inventory was not delivered. Shipping and Handling Costs Shipping and handling costs for product shipments to customers are included in cost of product revenue. Shipping and handling costs incurred for inventory purchases are capitalized in inventory and expensed in cost of product revenue. Property and Equipment Property and equipment are recorded at cost. Depreciation is computed over the estimated useful lives, ranging from two to 15 years, of the related assets using the straight-line method. Acquired software is recorded at cost. Amortization of acquired software generally occurs over three years using the straight-line method. Leasehold improvements are amortized on a straight-line basis over the shorter of the useful life or term of the lease. Demonstration units, which are the Company products used for demonstration purpose for customers and/or potential customers, and generally not intended to be sold, are amortized using the straight-line method. Depreciation and amortization periods for property and equipment are as follows: Property and Equipment Estimated Useful Life Prototype 2 – 10 years Machinery and equipment 3 – 15 years Furniture and fixture 5 – 10 years Software 3 years Leasehold improvements Lesser of estimated useful life or remaining lease term Leases We determine if an arrangement is a lease at inception. Operating leases are included in operating lease right-of-use (“ROU”) assets, and operating lease liabilities, current and noncurrent, on our consolidated balance sheets. We currently do not have any finance lease arrangements. Operating lease ROU assets and operating lease liabilities are recognized based on the present value of the future minimum lease payments over the lease term at commencement date. As our leases do not provide an implicit rate, we use our incremental borrowing rate based on the information available at commencement date of the lease in determining the present value of future payments. The operating lease ROU asset also includes any lease payments made and excludes lease incentives and initial direct costs incurred. Our lease terms may include an option to extend or terminate the lease when it is reasonably certain that we will exercise that option. Lease expense for minimum lease payments is recognized on a straight-line basis over the lease term. Leases with an initial term of 12 months or less are not recorded on the balance sheet; we recognize lease expense for these leases on a straight-line basis over the lease term. Asset Retirement Obligations In connection with two lease agreements and subsequent amendments, the Company has a legal obligation to remove long-lived assets constructed on the leased properties and to restore the leased properties to their original condition. The Company records the fair value of the asset retirement obligation in the period in which it is incurred. The fair value is measured based upon the present value of the expected future payments at inception and remeasured upon the extension of the respective lease agreement. The liability is accreted to its present value each period and the capitalized cost is depreciated over the remaining lease term. Accretion expense is calculated by applying the effective interest rate to the carrying amount of the liability at the beginning of each period. The effective interest rate is the credit-adjusted risk-free rate applied when the liability was initially measured at inception and remeasured upon the lease extension, when applicable. At December 31, 2019, the Company had outstanding asset retirement obligations of $0.9 million, which was included in other long-term liabilities in the accompanying consolidated balance sheets. For the years ended December 31, 2019, 2018 and 2017, the Company recognized accretion expenses of $43 thousand, $33 thousand and $40 thousand in the accompanying statements of operations and comprehensive loss. Impairment of Long-Lived Assets The Company reviews the recoverability of long-lived assets, including equipment, leasehold improvements, software and intangible assets when events or changes in circumstances occur that indicate that the carrying value of the asset may not be recoverable. The assessment of possible impairment is based on the ability to recover the carrying value of the assets from the expected future cash flows (undiscounted and without interest charge) of the related operations. If these cash flows are less than the carrying value of such assets, an impairment loss for the difference between the estimated fair value and carrying value is recorded. There was no impairment loss recognized during the years ended December 31, 2019, 2018 and 2017. Revenue Recognition The Company derives revenues primarily from the sale of MRIdian systems and related services as well as support and maintenance services on sold systems. The Company accounts for revenue contracts with customers by applying the requirements of ASC 606, Revenues from Contracts with Customers, • Identification of the contract, or contracts, with a customer; • Identification of the performance obligations in the contract • Determination of the transaction price; • Allocation of the transaction price to the performance obligations in the contract; and • Recognition of revenue when, or as, the Company satisfies a performance obligation. In all sales arrangements, revenues are recognized when control of the promised goods or services are transferred to customers, in an amount that reflects the consideration the Company expects to be entitled to receive in exchange for those goods or services. For sales of MRIdian systems, beginning in the second quarter of 2019, the Company determined that the MRIdian system and installation of the MRIdian system, which had previously been one performance obligation, are now two performance obligations as they are capable of being distinct and are distinct within the context of the system contracts. This change occurred due primarily to changes in facts and circumstances, whereby there are now readily available resources outside the Company that can perform the system installations. For sales of the related support and maintenance services, a time-elapsed method is used to measure progress toward complete satisfaction of performance obligations and service revenue is recognized ratably over the service contract term, which is typically 12 months. Additional details regarding revenue recognition are included in the section entitled “Notes to Consolidated Financial Statements – Note 7 – Revenue” in the consolidated financial statements included elsewhere in this Form 10-K. Research and Development Costs Expenditures, including payroll, contractor expenses and supplies, for research and development of products and manufacturing processes are expensed as incurred. Software development costs incurred subsequent to establishing technological feasibility are capitalized through the general release of MRIdian systems that contain the embedded software elements. Technological feasibility is demonstrated by the completion of a working model. The Company has not capitalized any software development costs at December 31, 2019 or 2018, since the costs incurred subsequent to achieving technological feasibility and completing the research and development for the software components were immaterial. Stock-Based Compensation The Company uses the Black-Scholes option-pricing model to estimate the fair value of stock options. The Black-Scholes option-pricing model requires the use of highly subjective assumptions, including the options’ expected term and the price volatility of the underlying stock Deferred Commissions Deferred commissions are the direct and incremental costs directly associated with the MRIdian system contracts with customers, which primarily consist of sales commissions to our direct sales force. The commissions are deferred and expensed in proportion to the revenue recognized upon the acceptance of the MRIdian system. At December 31, 2019 and 2018, the Company had $2.1 million and $3.9 million, respectively, in deferred commissions recorded as part of prepaid expenses and other current assets on the consolidated balance sheets. Income Taxes The Company uses the asset and liability method of accounting for income taxes. Deferred tax assets and liabilities are recognized for the estimated future tax consequences attributable to differences between the financial statement carrying amounts of existing assets and liabilities and their respective tax bases. 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. Deferred tax expense or benefit is the result of changes in the deferred tax assets and liabilities. Valuation allowances are established when necessary to reduce deferred tax assets where, based upon the available evidence, management concludes that it is more-likely-than not that the deferred tax assets will not be realized. Because of the uncertainty of the realization of the deferred tax assets, the Company has recorded a full valuation allowance against its net deferred tax assets. In evaluating the ability to recover its deferred income tax assets, the Company considers all available positive and negative evidence, including its operating results, ongoing tax planning and forecasts of future taxable income on a jurisdiction-by-jurisdiction basis. In the event the Company was to determine that it would be able to realize its deferred income tax assets in the future in excess of their net recorded amount, it would make an adjustment to the valuation allowance which would reduce the provision for income taxes. Reserves are provided for tax benefits for which realization is uncertain. Such benefits are only recognized when the underlying tax position is considered more likely than not to be sustained on examination by a taxing authority, assuming they possess full knowledge of the position and facts. It is the Company’s policy to include any penalties and interest related to income taxes in its income tax provision; however, the Company currently has no penalties or interest related to income taxes. The earliest year that the Company is subject to examination is the year ended December 31, 2004. Warrant Liability Certain warrants to purchase common stock provide for cash settlement in the event of a change in control, and are recorded as liabilities on the balance sheets at fair value upon issuance (see Note 13). These warrants are subject to re-measurement to fair value at each balance sheet date. Any changes in fair value are recognized in the consolidated statements of operations and comprehensive loss as other income (expense), net. Upon exercise or expiration of the warrants, the related warrant liability will be reclassified to additional paid-in capital. Net Loss per Share The Company’s basic net loss attributable to common stockholders per share is calculated by dividing net loss by the weighted-average number of shares of common stock outstanding for the period. Contingently issuable shares are included in the computation of basic net loss per share as of the date that all necessary conditions have been satisfied and issuance of the shares is no longer contingent. The diluted net loss per share is computed by giving effect to all potential common stock equivalents outstanding for the period determined using the treasury stock method. For purposes of this calculation, stock options, restricted stock units and warrants to purchase common stock are considered to be common stock equivalents but have been excluded from the calculation of diluted net loss per share as their effect is anti-dilutive. Recent Accounting Pronouncements In August 2018, the FASB issued Accounting Standard Update (ASU) No. 2018-13, Fair Value Measurement (Topic 820): Disclosure Framework - Changes to the Disclosure Requirements for Fair Value Measurement, In December 2019, the FASB issued ASU No. 2019-12, Income Taxes (Topic 740): Simplifying the Accounting for Income Taxes, Recently Adopted Accounting Pronouncements In February 2016, the FASB issued ASU No. 2016-02, Leases Topic 842 provides several optional practical expedients in transition. The Company elected to use the package of practical expedients permitted under the transition guidance, which allows the Company not to reassess its prior conclusions about lease identification, lease classification and initial direct costs for any leases that existed prior to January 1, 2019. The Company did not elect to use the other practical expedients provided. Upon adoption, the Company recognized the right-of-use assets and operating lease liabilities totaling approximately $11.9 million and $12.6 million, respectively, to reflect the present value of remaining lease payments under existing lease arrangements with no impact to the opening balance of retained deficit as a result of adoption. The difference between the leased assets and lease liabilities represents the existing deferred rent liabilities balance, resulting from historical straight-lining of operating leases, which was effectively reclassified upon adoption to reduce the measurement of the leased assets. In determining the present value of lease payments, the Company uses the rate implicit in the lease or when such rate is not readily available, we utilize our incremental borrowing rate based on the information available at the lease commencement date. Lease expense is recognized on a straight-line basis over the expected lease term. In determining the expected lease term, the Company may include options to extend or terminate the lease when it is reasonably certain that it will exercise any such option. For more information on the impact of adoption and the disclosures required by the new standard, refer to Note 6, Commitments and Contingencies. In June 2018, the FASB issued ASU No. 2018-07, Compensation—Stock Compensation (Topic 718): Improvements to Nonemployee Share-Based Payment Accounting |