Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation The condensed consolidated financial statements have been prepared in conformity with accounting principles generally accepted in the United States, or GAAP, and pursuant to the rules and regulations of the Securities and Exchange Commission, or the SEC. The condensed 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. In the opinion of management, all adjustments, including normal recurring adjustments, considered necessary for a fair presentation of the Company’s unaudited condensed consolidated financial statements, have been included. The results of operations for the three and six months ended June 30, 2018 are not necessarily indicative of the results that may be expected for the year ending December 31, 2018 or any future period. These unaudited condensed consolidated financial statements and their notes should be read in conjunction with the audited consolidated financial statements and related notes for the year ended December 31, 2017. Effective January 1, 2018, the Company adopted Accounting Standard Codification Topic 606, or ASC 606, Revenues from Contracts with Customers, Significant Accounting Policies The significant accounting policies used in preparation of these condensed consolidated financial statements are disclosed in the notes to consolidated financial statements included in the Company’s Annual Report on Form 10-K for the fiscal year ended December 31, 2017 filed with the SEC on March 12, 2018, and have not changed significantly since that filing, except for the impact of the adoption of the new accounting guidance related to revenue recognition. 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, which includes the following steps: • 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 that the Company is required to install at the customer site, product revenue is recognized upon receipt of customer acceptance. For sales of MRIdian systems for which the Company is not responsible for installing, product revenue is recognized when the entire system is delivered and control of the system is transferred to the customer. 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. Arrangements with Multiple Performance Obligation The Company frequently enters into sales arrangements that include multiple performance obligations, which mainly consist of (i) sale of MRIdian systems, which generally includes installation and embedded software, and (ii) product support, which includes extended service and maintenance. For such arrangements, the Company allocates revenue to each performance obligation based on its relative standalone selling price. The standalone selling price, or SSP, is determined based on observable prices at which the Company separately sells the products and services. If an SSP is not directly observable, the Company will estimate the SSP considering market conditions or internally approved pricing guidelines related to the performance obligations. Product Revenue Product revenue is derived primarily from the sales of MRIdian system. The system contains both software and non-software components that together deliver essential functionality. The Company’s customer contracts generally call for on-site assembly of the system components and system integration. Once the system installation is completed, the Company performs a detailed demonstration with the customer showing that the MRIdian system meets the standard product specifications. After successful demonstration, the customer signs a document indicating customer’s acceptance. For sales of MRIdian systems that the Company is required to install at the customer site, revenue recognition occurs when the customer acknowledges that the system operates in accordance with standard product specifications, the customer accepts the installed unit by signing the acceptance document and the control of the system is transferred to the customer. Certain customer contracts with distributors do not require ViewRay installation at the customer site, and the distributors typically have their own or engage a qualifying third-party certified technician to perform the installation. For sales of MRIdian systems for which the Company is not responsible for installation, revenue recognition occurs when the entire system is delivered, and the control of the system is transferred to the customer. Service Revenue Service revenue is derived primarily from maintenance services. The maintenance and support service is a stand-ready obligation which is performed over the term of the arrangement and, as a result, service revenue is recognized ratably over the service period as the customers benefit from the service throughout the service period. Distribution Rights Revenue In December 2014, the Company entered into a distribution agreement with Itochu Corporation pursuant to which it appointed Itochu as its exclusive distributor for the promotion, sale and delivery of MRIdian products within Japan. In consideration of the exclusive distribution rights granted, the Company received $4.0 million, which was recorded as deferred revenue. Starting in August 2016, distribution rights revenue is recognized ratably over the remaining term of the distribution agreement of approximately 8.5 years . The following table presents revenue disaggregated by types and geography (in thousands): Three Months Ended June 30, Six Months Ended June 30, U.S. 2018 2017 2018 2017 Product $ 6,053 $ — $ 19,588 $ — Service 502 312 898 1,191 Total U.S. revenue $ 6,555 $ 312 $ 20,486 $ 1,191 Outside of U.S. ("OUS") Product $ 9,313 $ — $ 21,157 $ — Service 456 267 752 496 Distribution rights 119 119 238 238 Total OUS revenue $ 9,888 $ 386 $ 22,147 $ 734 Total Product $ 15,366 $ — $ 40,745 $ — Service 958 579 1,650 1,687 Distribution rights 119 119 238 238 Total revenue $ 16,443 $ 698 $ 42,633 $ 1,925 Contract Balances The timing of revenue recognition, billings and cash collections results in short-term and long-term trade receivables, customer deposit, deferred revenues and deferred cost of revenue on the condensed consolidated balance sheets. Trade receivables are recorded at the original invoiced amount, net of an estimated allowance for doubtful accounts. Trade credit is generally extended on a short-term basis. The Company occasionally provides for long-term trade credit for its maintenance services so that the period between when the services are rendered to its customers and when the customers pay for that service is within one year. Thus, the Company’s trade receivables do not bear interest or contain significant financing component. Long-term trade receivables of $400 thousand are reported within other assets in the condensed consolidated balance sheets at June 30, 2018. These amounts are billed in accordance with the terms of the customer contracts to which they relate and are expected to be collected three to four years from the date of invoice as the underlying maintenance services are rendered. The Company had no long-term trade receivables at December 31, 2017. Trade receivables are periodically evaluated for collectability based on past credit history with customers and their current financial condition. Changes in the estimated collectability of trade receivables are recorded in the results of operations for the period in which the estimate is revised. Trade receivables that are deemed uncollectible are offset against the allowance for doubtful accounts. The Company generally does not require collateral for trade receivables. Based on the specific customers and the current economic conditions, there was no allowance for doubtful accounts recorded at June 30, 2018 or December 31, 2017. Customer deposits represent payments received in advance of system installation. For domestic and international sales, advance payments received prior to inventory shipments and customer acceptance are recorded as customer deposits. Advance payments are subsequently reclassified to deferred revenue upon inventory shipment when the title and risk of loss of inventory items transfer to customers. All customer deposits, including those that are expected to be a deposit for more than one year, are classified as current liabilities based on consideration of the Company’s normal operating cycle (the time between acquisition of the inventory components and the final cash collection from customers on these inventory components) which is in excess of one year. Deferred revenue consists of deferred product revenue and deferred service revenue. Deferred product revenue arises from timing differences between the fulfillment of contract obligations and satisfaction of all revenue recognition criteria consistent with the Company’s revenue recognition policy. Deferred service revenue results from the advance billing for services to be delivered over a period of time. Deferred revenues expected to be realized within one year or normal operating cycle are classified as current liabilities. Deferred cost of revenue consists of cost for inventory items that have been shipped with title and risk of loss transferred to the customer, but the customer acceptance has not been received. Deferred cost of revenue is included as part of current assets as the corresponding deferred product revenue is expected to be realized within one year or normal operating cycle. During the three and six months ended June 30, 2018, the Company recognized $6.8 million and $17.9 million revenue that was included in the deferred revenue balance at the beginning of each reporting period. During the three and six months ended June 30, 2017, the Company recognized $673.7 thousand and $735.5 thousand revenue that was included in the deferred revenue balance at the beginning of each reporting period. Practical Expedients Election As part of the Company's adoption of ASC 606, the Company elected to use the practical expedient to expense costs to obtain a contract as incurred when the amortization period would have been one year or less, which mainly includes the Company's internal sales force compensation program. Recent Accounting Pronouncements In February 2016, the Financial Accounting Standards Board, FASB, issued ASU No. 2016-02, Leases (Topic 842) In June 2018, the FASB issued ASU No. 2018-07 Compensation — Stock Compensation (Topic 718): Improvements to Nonemployee Share-Based Payment Accounting Recently Adopted Accounting Pronouncements In May 2014, the FASB issued ASC 606. Under the standard, revenue is recognized when a customer obtains control of promised goods or services in an amount that reflects the consideration the entity expects to receive in exchange for those goods or services. Effective January 1, 2018, the Company adopted the requirements of ASC 606 using the full retrospective method. The adoption has no impact on the prior period financial statements, and the related disclosures required by the new standard have been updated in the “Significant Accounting Policies” section above. On January 1, 2018, the Company adopted ASU No.2016-15 , Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments Statement of Cash Flows (Topic 230): Restricted Cash Under ASU 2016-18, restricted cash and restricted cash equivalent amounts are presented along with cash and cash equivalents when reconciling the total beginning and ending amounts shown on the statement of cash flows. The Company reflected the impact of ASU No. 2016-18 to the comparative prior period which resulted in an increase in the beginning and ending cash, cash equivalents and restricted cash of $ In May 2017, the FASB issued ASU No. 2017-09 , Compensation-Stock Compensation (Topic 718): Scope of Modification Accounting In the first quarter of 2018, the Company adopted ASU No. 2018-05, Income Taxes (Topic 740): Amendments to SEC Paragraphs Pursuant to SEC Staff Accounting Bulletin No. 118, |