Summary of Significant Accounting Policies | 2. Summary of Significant Accounting Policies Basis of Presentation and Principles of Consolidation The Company’s consolidated financial statements were prepared in conformity with accounting principles generally accepted in the United States of America (“GAAP”). The accompanying consolidated financial statements include all wholly-owned subsidiaries. All significant intercompany accounts and transactions have been eliminated. The consolidated statements of operations include the results of entities acquired from the dates of the acquisitions for accounting purposes. Use of Estimates The preparation of consolidated financial statements in conformity with GAAP requires management to make certain estimates, judgments and assumptions that affect the reported amounts of assets and liabilities and the related disclosures at the date of the financial statements, as well as the reported amounts of revenue and expenses during the periods presented. Estimates include revenue recognition, the allowance for doubtful accounts, website and internal-use software development costs, goodwill, depreciable lives of property and equipment, recoverability of intangible assets with finite lives and other long-lived assets and stock-based compensation. To the extent there are material differences between these estimates, judgments or assumptions and actual results, the Company’s consolidated financial statements will be affected. In many cases, the accounting treatment of a particular transaction is specifically dictated by GAAP and does not require management’s judgment in its application. Cash and Cash Equivalents Cash includes demand deposits with banks or financial institutions. Cash equivalents include short-term, highly liquid investments that are both readily convertible to known amounts of cash, and that are so near their maturity that they present minimal risk of changes in value because of changes in interest rates. The Company’s cash equivalents include only investments with original maturities of three months or less. The Company regularly maintains cash in excess of federally insured limits at financial institutions. Marketable Securities Marketable securities consist primarily of commercial paper and investment grade U.S. and non-U.S.-issued corporate and U.S. government agency debt securities. The Company invests in a diversified portfolio of marketable securities and limits the concentration of its investment in any particular security. Marketable securities with original maturities of three months or less are included in cash and cash equivalents and marketable securities with original maturities greater than three months, but less than one year, are included in short term investments on the consolidated balance sheets. The Company determines the classification of its marketable securities as available-for-sale or held-to-maturity at the time of purchase and reassesses these determinations at each balance sheet date. Debt securities are classified as held-to-maturity when the Company has the intent to hold the securities to maturity. Held-to-maturity securities are stated at amortized cost and are periodically assessed for other-than-temporary impairment. The amortized cost of debt securities is adjusted for the amortization of premiums and accretion of discounts to maturity, which is recognized as interest income within general and administrative expense in the consolidated statements of operations. Interest income is recognized when earned. Accumulated Other Comprehensive Loss Accumulated other comprehensive loss consists of foreign currency translation adjustments. The financial statements of the Company’s U.K. subsidiary are translated from their functional currency into U.S. dollars. Assets and liabilities are translated at period end rates of exchange, and revenue and expenses are translated using average rates of exchange. The resulting gain or loss is included in accumulated other comprehensive loss on the consolidated balance sheets. Property and Equipment, Net Property and equipment is recorded at cost and depreciated using the straight-line method over the estimated useful lives of the related assets. The useful lives are as follows: Estimated Useful Life Computer equipment 2-3 years Furniture and fixtures 5 years Developed software 1-3 years Purchased software and digital assets 3-5 years Leasehold improvements Shorter of expected useful life or lease term Maintenance and repair costs are charged to expense as incurred. Major improvements, which extend the useful life of the related asset, are capitalized. Upon disposal of a fixed asset, the Company records a gain or loss based on the difference between the proceeds received and the net book value of the disposed asset. Accounts Receivable, Net Accounts receivable primarily represent the net cash due from the Company’s payment processor for cleared transactions and amounts owed from corporate customers. The carrying amount of the Company’s receivables is reduced by an allowance for doubtful accounts that reflects management’s best estimate of amounts that will not be collected. These uncollected amounts are generally not recovered from the restaurants. The allowance is recorded through a charge to bad debt expense which is recognized within general and administrative expense in the consolidated statements of operations. The allowance is based on historical loss experience and any specific risks, current or forecasted, identified in collection matters. Management provides for probable uncollectible amounts through a charge against bad debt expense and a credit to an allowance based on its assessment of the current status of individual accounts. Balances still outstanding after management has used reasonable collection efforts are written off against the allowance. The Company does not charge interest on trade receivables. The Company incurs expenses for uncollected credit card receivables (or “chargebacks”), including fraudulent orders, when a diner’s card is authorized but fails to process, and for other unpaid credit card receivables. The majority of the Company’s chargeback expense is recorded directly to general and administrative expense in the consolidated statements of operations as the charges are incurred; however, a portion of the allowance for doubtful accounts includes a reserve for estimated chargebacks on the net cash due from the Company’s payment processors as of the end of the period. Changes in the Company’s allowance for doubtful accounts for the periods presented were as follows: Year Ended December 31, 2016 2015 Balance at beginning of period $ 959 $ 723 Additions to expense 1,102 850 Writeoffs, net of recoveries and other adjustments (832 ) (614 ) Balance at end of period $ 1,229 $ 959 Advertising Costs Advertising costs are generally expensed as incurred in connection with the requisite service period. Certain advertising production costs are capitalized and expensed when the advertisement first takes place. For the years ended December 31, 2016, 2015 and 2014, expenses attributable to advertising totaled approximately $75.5 million, $64.4 million and $45.9 million, respectively. Advertising costs are recorded in sales and marketing expense on the Company’s consolidated statements of operations. Stock-Based Compensation The Company measures compensation expense for all stock-based awards, including stock options, restricted stock units and restricted stock awards, at fair value on the date of grant and recognizes compensation expense over the service period on a straight-line basis for awards expected to vest. The Company uses the Black-Scholes option-pricing model to determine the fair value for stock options. In valuing the Company’s options, the Company makes assumptions about risk-free interest rates, dividend yields, volatility and weighted-average expected lives, including estimated forfeiture rates. Risk-free interest rates are derived from U.S. Treasury securities as of the option grant date. Expected dividend yield is based on the Company’s historical dividend payments, which have been zero to date. As the Company did not have public trading history for its common shares until April of 2014, the expected volatility for the Company’s common stock is estimated using a combination of the published historical and implied volatilities of industry peers representing the verticals in which the Company operates and the historical volatility of the Company’s own common stock. The Company estimates the weighted-average expected life of the options as the average of the vesting option schedule and the term of the award, since the Company does not have sufficient historical exercise data to provide a reasonable basis upon which to estimate expected term due to the limited period of time stock-based awards have been exercisable. The term of the award is estimated using the simplified method. Forfeiture rates are estimated using historical actual forfeiture trends as well as the Company’s judgment of future forfeitures. These rates are evaluated quarterly and any change in compensation expense is recognized in the period of the change. The estimation of stock awards that will ultimately vest requires judgment, and to the extent actual results or updated estimates differ from the Company’s current estimates, such amounts will be recorded as a cumulative adjustment in the period the estimates are revised. The Company considers many factors when estimating expected forfeitures, including the types of awards and employee class. Actual results, and future changes in estimates, may differ substantially from management’s current estimates. The Company will continue to estimate forfeitures as described above in accordance with the policy alternatives available under Accounting Standards Update No. 2016-09, effective in the first quarter of 2017. The Company has elected to use the with-and-without method in determining the order in which tax attributes are utilized. As a result, the Company has only recognized a tax benefit for stock-based awards in additional paid-in capital if an incremental tax benefit was realized after all other tax attributes available to the Company have been utilized. See Note 9, “Stock-Based Compensation” for further discussion. Beginning in the first quarter of 2017, the Company will recognize tax benefits and deficiencies for stock-based awards in the income statement. See “ Recently Issued Accounting Pronouncements” below for further discussion. Provision for Income Taxes The provision for income taxes is determined using the asset and liability method. Under this method, deferred tax assets and liabilities are calculated based upon the temporary differences between the financial statement and income tax bases of assets and liabilities using the enacted tax rates that are applicable in a given year. The Company utilizes a two-step approach to recognizing and measuring uncertain tax positions (“tax contingencies”). The first step is to evaluate the tax position for recognition by determining if the weight of available evidence indicates it is more likely than not that the position will be sustained on audit, including resolution of related appeals or litigation processes. The second step is to measure the tax benefit as the largest amount which is more than 50% likely to be realized upon ultimate settlement. The Company considers many factors when evaluating and estimating its tax positions and tax benefits, which may require periodic adjustments and which may not accurately forecast actual outcomes. The Company includes interest and penalties related to tax contingencies in the provision for income taxes in the consolidated statements of operations. See Note 10, “ Income Taxes Intangible Assets Intangible assets with finite useful lives are amortized using the straight-line method over their useful lives and are reviewed for impairment. The Company evaluates intangible assets with finite and indefinite useful lives and other long-lived assets for impairment whenever events or circumstances indicate that they may not be recoverable, or at least annually. Recoverability of finite and other long-lived assets is measured by comparing the carrying amount of an asset group to the future undiscounted net cash flows expected to be generated by that asset group. The amount of impairment to be recognized for finite and indefinite-lived intangible assets and other long-lived assets is calculated as the difference between the carrying value and the fair value of the asset group, generally measured by discounting estimated future cash flows. There were no impairment indicators present during the years ended December 31, 2016, 2015 or 2014. Website and Software Development Costs The costs incurred in the preliminary stages of website and software development are expensed as incurred. Once an application has reached the development stage, internal and external costs, if direct and incremental and deemed by management to be significant, are capitalized and amortized on a straight-line basis over the estimated useful life of the application. Maintenance and enhancement costs, including those costs in the post-implementation stages, are typically expensed as incurred, unless such costs relate to substantial upgrades and enhancements to the website or software that result in added functionality, in which case the costs are capitalized and amortized on a straight-line basis over the estimated useful lives. Amortization expense related to capitalized website and software development costs is included in depreciation and amortization in the consolidated statements of operations. The Company capitalized $15.6 million, $8.0 million and $3.6 million of website development costs during the years ended December 31, 2016, 2015 and 2014, respectively. Goodwill Goodwill represents the excess of the cost of an acquired business over the fair value of the assets acquired at the date of acquisition. Absent any special circumstances that could require an interim test, the Company has elected to test for goodwill impairment at September 30 of each year. The Company tests for impairment using a two-step process. The first step of the goodwill impairment test identifies if there is potential goodwill impairment. If step one indicates that an impairment may exist, a second step is performed to measure the amount of the goodwill impairment, if any, by comparing the implied fair value of goodwill with the carrying amount. If the implied fair value of goodwill is less than the carrying amount, a write-down is recorded. The Company determined there was no goodwill impairment during the years ended December 31, 2016, 2015 and 2014. Fair Value Accounting standards define fair value as the price that would be received to sell an asset or paid to transfer a liability (an exit price) in the principal or most advantageous market in an orderly transaction between market participants on the measurement date. The standards also establish a fair value hierarchy, which requires an entity to maximize the use of observable inputs and minimize the use of unobservable inputs when measuring fair value. See Note 14, “Fair Value Measurement,” Concentration of Credit Risk Financial instruments which potentially subject the Company to concentrations of credit risk consist principally of accounts receivable. For the years ended December 31, 2016, 2015 and 2014, the Company had no customers which accounted for more than 1% of revenue or 10% of accounts receivable. Revenue Recognition In general, the Company recognizes revenue when (i) persuasive evidence of an arrangement exists, (ii) delivery has occurred or services have been rendered to the customer, (iii) the fee is fixed or determinable and (iv) collectability is reasonably assured. The Company considers persuasive evidence of an arrangement to be a signed agreement, a binding contract with the restaurant or other similar documentation reflecting the terms and conditions under which products or services will be provided. The Company generates revenues primarily when diners place an order on the platform through its mobile applications, its websites, third-party websites that incorporate API or one of the Company’s listed phone numbers. Restaurants pay a commission, typically a percentage of the transaction, on orders that are processed through the platform. Most of the restaurants on the Company’s platform can choose their level of commission rate, at or above a base rate. A restaurant can choose to pay a higher rate which affects its prominence and exposure to diners on the platform. Additionally, restaurants that use the Company’s delivery services pay an additional commission for the use of those services. As an agent of the merchant in the transaction, the Company recognizes as revenues only the commissions from the transaction, which are a percentage of the total Gross Food Sales for such transaction. The Company periodically provides incentive offers to restaurants and diners to use the platform. These promotions are generally cash credits to be applied against purchases. These incentive offers are recorded as reductions in revenues, generally on the date the corresponding revenue is recorded. The Company also accepts payment for orders via gift cards offered on its platform. If a gift card that is not subject to unclaimed property laws is not redeemed, the Company recognizes revenue when the gift card expires or when the likelihood of its redemption becomes remote. Revenues from online and phone delivery orders are recognized when these orders are placed at the restaurants. The amount of revenue recorded by the Company is based on the arrangement with the related restaurant, and is adjusted for any cash credits, including incentive offers provided to restaurants and diners, related to the transaction. The Company also recognizes as revenue any fees charged to the diner for delivery services provided by the Company. Although the Company will process the entire amount of the transaction with the diner, it will record revenue on a net basis because the Company is acting as an agent of the merchant in the transaction. The Company will record an amount representing the restaurant food liability for the net balance due the restaurant. Costs incurred for processing the transactions and providing delivery services are included in operations and support in the consolidated statements of operations. Deferred Rent For the Company’s operating leases, the Company recognizes rent expenses on a straight-line basis over the terms of the leases. Accordingly, the Company records the difference between cash rent payments and the recognition of rent expenses as a deferred rent liability in the consolidated balance sheets. The Company has landlord-funded leasehold improvements that are recorded as tenant allowances which are being amortized as a reduction of rent expense over the noncancelable terms of the operating leases. Segments The Company has one reportable segment, which has been identified based on how the chief operating decision maker manages the business, makes operating decisions and evaluates operating performance. Recently Issued Accounting Pronouncements In January 2017, the Financial Accounting Standards Board (the “FASB”) issued Accounting Standards Update No. 2017-04, “Intangibles – Goodwill and Other (Topic 350): Simplifying the Test for Goodwill Impairment” (“ASU 2017-04”). ASU 2017-04 eliminates Step 2 from the goodwill impairment test, which measures a goodwill impairment loss by comparing the implied fair value of a reporting unit’s goodwill with its carrying amount. Under the amendment, an entity should recognize an impairment charge for the amount by which the reporting unit’s carrying amount exceeds its fair value, not to exceed the carrying amount of goodwill. The Company has elected to early adopt ASU 2017-04 beginning in the first quarter of 2017 and will apply the standard prospectively. The adoption of ASU 2017-04 may reduce the cost and complexity of evaluating goodwill for impairment, but is not expected to have a material impact on the Company’s consolidated financial position, results of operations or cash flows. In January 2017, the FASB issued Accounting Standards Update No. 2017-01, “Business Combinations (Topic 805): Clarifying the Definition of a Business” (“ASU 2017-01”). ASU 2017-01 provides that when substantially all the fair value of the assets acquired is concentrated in a single identifiable asset or a group of similar identifiable assets, the set is not a business. The Company has elected to adopt ASU 2017-01 early. ASU 2017-01 will be effective for transactions beginning in the first quarter of 2017 and will be applied prospectively. The adoption of ASU 2017-01 is not expected to have a material impact on the Company’s consolidated financial position, results of operations or cash flows. In August 2016, the FASB issued Accounting Standards Update No. 2016-15, “Statement of Cash Flows (Topic 230): Classification of Certain Cash Receipts and Cash Payments” (“ASU 2016-15”). ASU 2016-15 adds or clarifies guidance on the classification of certain cash receipts and payments in the statement of cash flows with the intent of reducing diversity in practice related to eight types of cash flows including, among others, debt prepayment or debt extinguishment costs, contingent consideration payments made after a business combination, and separately identifiable cash flows and application of the predominance principle. In addition, in November 2016, the FASB issued Accounting Standards Update No. 2016-18, “Statement of Cash Flows (Topic 230): Restricted Cash” (“ASU 2016-18”). ASU 2016-18 requires companies to include amounts generally described as restricted cash and restricted cash equivalents in cash and cash equivalents when reconciling beginning-of-period and end-of-period total amounts shown on the statement of cash flow . ASU 2016-15 and ASU 2016-18 are effective for the Company beginning in first quarter of 2018 and early adoption is permitted. The amendments should be applied using a retrospective transition method to each period presented. The adoption of ASU 2016-15 and ASU 2016-18 may impact the Company’s disclosures but is otherwise not expected to have a material impact on its consolidated financial position, results of operations or cash flows. In June 2016, the FASB issued Accounting Standards Update No. 2016-13, “Financial Instruments—Credit Losses (Topic 326): Measurement of Credit Losses on Financial Instruments” (“ASU 2016-13”). ASU 2016-13 introduces a new forward-looking approach, based on expected losses, to estimate credit losses on certain types of financial instruments, including trade receivables and held-to-maturity debt securities, which will require entities to incorporate considerations of historical information, current information and reasonable and supportable forecasts. This ASU also expands disclosure requirements. ASU 2016-13 is effective for the Company beginning the first quarter of 2020 and early adoption is permitted. The guidance will be applied using the modified-retrospective approach. The adoption of ASU 2016-13 is not expected to have a material impact on the Company’s consolidated financial position, results of operations or cash flows. In March 2016, the 2016-09, “Compensation—Stock Compensation (Topic 718): Improvements to Employee Share-Based Payment Accounting” (“ASU 2016-09”), which simplifies several aspects of the accounting for share-based payment transactions . Under ASU 2016-09, excess tax benefits and tax deficiencies are recognized as income tax expense or benefit in the income statement. ASU 2016-09 also provides entities with the option to elect an accounting policy to continue to estimate forfeitures of stock-based awards over the service period (current GAAP) or account for forfeitures when they occur . Under ASU 2016-09, previously unrecognized excess tax benefits should be recognized using a modified retrospective transition. In addition, amendments requiring recognition of excess tax benefits and tax deficiencies in the income statement, as well as changes in the computation of weighted-average diluted shares outstanding, should be applied prospectively. The Company believes the most significant impact of the adoption of ASU 2016-09 to the Company’s consolidated financial statements will be to recognize certain tax benefits or tax shortfalls upon a restricted-stock award or unit vesting or stock option exercise relative to the deferred tax asset position established in the provision for income taxes line of the consolidated statement of operations instead of to consolidated stockholders’ equity. During the years ended December 31, 2016, 2015 and 2014, the Company recorded $24.9 million, $27.8 million and $13.0 million to consolidated stockholders’ equity as tax benefits related to stock-based compensation, respectively . ASU 2016-09 is effective beginning in the first quarter of 2017 with early adoption permitted. The Company plans to adopt ASU 2016-09 during the first quarter of 2017. Upon the adoption of ASU 2016-09, the Company will record state net operating losses, including excess tax benefits, of $4.5 million to retained earnings on the consolidated balance sheets as of January 1, 2017. In February 2016, the FASB issued Accounting Standards Update No. In September 2015, the FASB issued Accounting Standards Update No. 2015-16, “Business Combinations (Topic 805): Simplifying the Accounting for Measurement-Period Adjustments” (“ASU 2015-16”), which eliminates the requirement to account for adjustments identified during the measurement-period in a business combination retrospectively. Instead, the acquirer must recognize measurement-period adjustments during the period in which they are identified, including the effect on earnings of any amounts that would have been recorded in previous periods had the purchase accounting been completed at the acquisition date. ASU 2015-16 was effective for and adopted by the Company in the first quarter of 2016. The adoption of ASU 2015-16 eliminates costs related to retrospective application of any measurement-period adjustments that may be identified, but has not had a material impact on the Company’s consolidated financial position, results of operations or cash flows. In April 2015, the FASB issued Accounting Standards Update 2015-05, “Intangibles -Goodwill and Other – Internal Use Software (Subtopic 350-40): Customer’s Accounting for Fees Paid in a Cloud Computing Arrangement” (“ASU 2015-05”), which provides guidance on accounting for fees paid in a cloud computing arrangement. Under ASU 2015-05, if a cloud computing arrangement includes a software license, the software license element should be accounted for consistent with the purchase of other software licenses. If the cloud computing arrangement does not include a software license, it should be accounted for as a service contract. ASU 2015-05 was effective for and adopted by the Company in the first quarter of 2016. The Company elected to apply ASU 2015-05 prospectively; however, its adoption did not have a material impact on the Company’s consolidated financial position, results of operations or cash flows. In April 2015, the FASB issued Accounting Standards Update No. 2015-03, “Interest - Imputation of Interest (Subtopic 835-30): Simplifying the Presentation of Debt Issuance Costs” (“ASU 2015-03”). ASU 2015-03 simplifies the presentation of debt issuance costs by requiring that debt issuance costs related to a recognized debt liability be presented in the balance sheet as a direct deduction from the carrying amount of that debt liability, consistent with debt discounts. Under the previous practice, debt issuance costs were recognized as a deferred charge (that is, an asset). The recognition and measurement guidance for debt issuance costs are not affected by the amendments in this ASU. In August 2015, the FASB issued ASU 2015-15 “Interest - Imputed Interest (Subtopic 835-30): Presentation and Subsequent Measurement of Debt Issuance Costs Associated with Line-of-Credit Arrangements” (“ASU 2015-15”), which clarifies that the guidance in ASU 2015-03 does not apply to line-of-credit arrangements. According to ASU 2015-15, debt issuance costs related to line-of-credit arrangements will continue to be deferred and presented as an asset and subsequently amortized ratably over the term of the arrangement. The amendments in ASU 2015-03 and clarifications of ASU 2015-15 are effective for the Company in the first quarter of 2016. The Company entered into a credit agreement on April 29, 2016 (see Note 8, Debt , for additional details). The adoption of ASU 2015-03 and ASU 2015-15 have not had a material impact on the Company’s consolidated financial position, results of operations or cash flows. In May 2014, the FASB issued Accounting Standards Update No. 2014-09, “Revenue from Contracts with Customers (Topic 606)” (“ASU 2014-09”) , which supersedes the revenue recognition requirements in Topic 605, Revenue Recognition, including most industry-specific requirements. ASU 2014-09 establishes a five-step revenue recognition process in which an entity will recognize revenue when it transfers promised goods or services to customers in an amount that reflects the consideration to which the company expects to be entitled in exchange for those goods or services. ASU 2014-09 also requires enhanced disclosures regarding the nature, amount, timing and uncertainty of revenues and cash flows from contracts with customers. In August 2015, the FASB issued Accounting Standards Update No. 2015-14, “Revenue from Contracts with Customers (Topic 606): Deferral of the Effective Date”, which defers the effective date of ASU 2014-09 by one year. In April 2016, the FASB issued Accounting Standards Update No. 2016-10, “Revenue from Contracts with Customers (Topic 606): Identifying Performance Obligations and Licensing” (“ASU 2016-10”) , which clarifies the implementation guidance on identifying performance obligations and licensing. ASU 2016-10 reduces the cost and complexity of identifying promised goods or services and improves the guidance for determining whether promises are separately identifiable. In May 2016, the FASB issued Accounting Standards Update No. 2016-12, “ Revenue from Contracts with Customers (Topic 606): Narrow-Scope Improvements and Practical Expedients” (“ASU 2016-12”), which amends the guidance in the new revenue standard on collectability, non-cash consideration, presentation of sales tax, and transition. In December 2016, the FASB issued Account Standards Update No. 2016-20, “Technical Corrections and Improvements to Topic 606, Revenue from Contracts with Customers” (“ASU 2016-20”), which contains additional technical corrections and improvements to the revenue standard but doesn’t change any of the principles in the new revenue guidance. ASU 2014-09, ASU 2016-08, ASU 2016-10, ASU 2016-12 and ASU 2016-20 will be effective for the Company in the first quarter of 2018. . Based on the Company’s initial assessment, the adoption of these ASUs is expected to have an immaterial impact on the timing of recognition of certain revenues and result in the deferral of certain incremental costs of obtaining a contract. Management does not expect the impact the adoption of these ASUs to have a material impact on the |