Summary of Business and Significant Accounting Policies | Summary of Business and Significant Accounting Policies Description of Business Salesforce.com, inc. (the "Company") is a leading provider of enterprise software, delivered through the cloud, with a focus on customer relationship management, or CRM. The Company introduced its first CRM solution in 2000, and has since expanded its service offerings into new areas and industries with new editions, features and platform capabilities. The Company's core mission is to empower its customers to connect with their customers in entirely new ways through cloud, mobile, social, Internet of Things (“IoT”) and artificial intelligence technologies. The Company's Customer Success Platform is a comprehensive portfolio of service offerings providing sales force automation, customer service and support, marketing automation, digital commerce, community management, analytics, application development, IoT integration, collaborative productivity tools and its professional cloud services. Fiscal Year The Company’s fiscal year ends on January 31. References to fiscal 2018 , for example, refer to the fiscal year ending January 31, 2018 . Basis of Presentation The accompanying consolidated balance sheet as of October 31, 2017 and the consolidated statements of operations, consolidated statements of comprehensive income (loss) and consolidated statements of cash flows for the three and nine months ended October 31, 2017 and 2016 , respectively, are unaudited. These financial statements have been prepared in accordance with U.S. generally accepted accounting principles (“U.S. GAAP”) for interim financial information. Accordingly, they do not include all of the financial information and footnotes required by U.S. GAAP for complete financial statements. In the opinion of the Company’s management, the unaudited consolidated financial statements include all adjustments necessary for the fair presentation of the Company’s balance sheet as of October 31, 2017 , and its results of operations, including its comprehensive income (loss) , and its cash flows for the three and nine months ended October 31, 2017 and 2016 . All adjustments are of a normal recurring nature. The results for the three and nine months ended October 31, 2017 are not necessarily indicative of the results to be expected for any subsequent quarter or for the fiscal year ending January 31, 2018 . These unaudited interim consolidated financial statements should be read in conjunction with the consolidated financial statements and related notes included in the Company's Annual Report on Form 10-K for the fiscal year ended January 31, 2017 , filed with the Securities and Exchange Commission (the “SEC”) on March 6, 2017 . Use of Estimates The preparation of financial statements in conformity with U.S. GAAP requires management to make estimates and assumptions in the Company’s consolidated financial statements and notes thereto. Significant estimates and assumptions made by management include the determination of: • the best estimate of selling price of the deliverables included in multiple deliverable revenue arrangements; • the fair value of assets acquired and liabilities assumed for business combinations; • the recognition, measurement and valuation of current and deferred income taxes; • the fair value of certain stock awards issued; • the useful lives of intangible assets, property and equipment and building and structural components; and • the valuation of strategic investments and the determination of other-than-temporary impairments. Actual results could differ materially from those estimates. The Company bases its estimates on historical experience and on various other assumptions that are believed to be reasonable, the result of which forms the basis for making judgments about the carrying values of assets and liabilities. Principles of Consolidation The consolidated financial statements include the accounts of the Company and its wholly-owned subsidiaries. All significant intercompany balances and transactions have been eliminated in consolidation. Segments The Company operates as one operating segment. Operating segments are defined as components of an enterprise for which separate financial information is evaluated regularly by the chief operating decision maker, who is the chief executive officer, in deciding how to allocate resources and assessing performance. Over the past few years, the Company has completed a number of acquisitions. These acquisitions have allowed the Company to expand its offerings, presence and reach in various market segments of the enterprise cloud computing market. While the Company has offerings in multiple enterprise cloud computing market segments, including as a result of the Company's acquisitions, the Company’s business operates in one operating segment because the majority of the Company's offerings operate on a single platform and are deployed in an identical way, and the Company’s chief operating decision maker evaluates the Company’s financial information and resources and assesses the performance of these resources on a consolidated basis. Since the Company operates in one operating segment, all required financial segment information can be found in the consolidated financial statements. Concentrations of Credit Risk and Significant Customers The Company’s financial instruments that are exposed to concentrations of credit risk consist primarily of cash and cash equivalents, marketable securities and accounts receivable. In addition, in connection with the Company's 0.25% Senior Notes (as defined in Note 8 "Debt"), which were issued in March 2013, the Company entered into convertible note hedge transactions with respect to its common stock, which are exposed to concentrations of credit risk. Collateral is not required for accounts receivable or the note hedge transactions. The Company maintains an allowance for its doubtful accounts receivable. This allowance is based upon historical loss patterns, the number of days that billings are past due and an evaluation of the potential risk of loss associated with delinquent accounts. Receivables are written-off and charged against its recorded allowance when the Company has exhausted collection efforts without success. No single customer accounted for more than five percent of accounts receivable at October 31, 2017 and January 31, 2017 . No single customer accounted for five percent or more of total revenue during the three and nine months ended October 31, 2017 and 2016 . Geographic Locations As of October 31, 2017 and January 31, 2017 , assets located outside the Americas were 13 percent and 12 percent of total assets, respectively. As of October 31, 2017 and January 31, 2017 , assets located in the United States were 86 percent and 86 percent of total assets, respectively. Revenues by geographical region are as follows (in thousands): Three Months Ended October 31, Nine Months Ended October 31, 2017 2016 2017 2016 Americas $ 1,927,405 $ 1,598,344 $ 5,536,932 $ 4,506,774 Europe 493,732 337,497 1,367,718 1,012,671 Asia Pacific 258,704 208,934 724,359 578,551 $ 2,679,841 $ 2,144,775 $ 7,629,009 $ 6,097,996 Revenues by geography are determined based on the region of the Salesforce contracting entity, which may be different than the region of the customer. Americas revenue attributed to the United States was approximately 96 percent during the three and nine months ended October 31, 2017 and 2016 . No other country represented more than ten percent of total revenue during the three and nine months ended October 31, 2017 and 2016 . Revenue Recognition The Company derives its revenues from two sources: (1) subscription revenues, which are comprised of subscription fees from customers accessing the Company’s enterprise cloud computing services and from customers paying for additional support beyond the standard support that is included in the basic subscription fees; and (2) related professional services such as process mapping, project management, implementation services and other revenue. Other revenue consists primarily of training fees. The Company commences revenue recognition when all of the following conditions are satisfied: • there is persuasive evidence of an arrangement; • the service has been or is being provided to the customer; • the collection of the fees is reasonably assured; and • the amount of fees to be paid by the customer is fixed or determinable. The Company’s subscription service arrangements are non-cancelable and do not contain refund-type provisions. Subscription and Support Revenues Subscription and support revenues are recognized ratably over the contract terms beginning on the commencement date of each contract, which is the date the Company’s service is made available to customers. Amounts that have been invoiced are recorded in accounts receivable and in deferred revenue or revenue, depending on whether the revenue recognition criteria have been met. Professional Services and Other Revenues The Company’s professional services contracts are either on a time and materials, fixed fee or subscription basis. These revenues are recognized as the services are rendered for time and materials contracts, when the milestones are achieved and accepted by the customer or on a proportional performance basis for fixed price contracts and ratably over the contract term for subscription professional services contracts. The milestone method for revenue recognition is used when there is substantive uncertainty at the date the contract is entered into whether the milestone will be achieved. Training revenues are recognized as the services are performed. Multiple Deliverable Arrangements The Company enters into arrangements with multiple deliverables that generally include multiple subscriptions, premium support and professional services. If the deliverables have standalone value at contract inception, the Company accounts for each deliverable separately. Subscription services have standalone value as such services are often sold separately. In determining whether professional services have standalone value, the Company considers the following factors for each professional services agreement: availability of the services from other vendors, the nature of the professional services, the timing of when the professional services contract was signed in comparison to the subscription service start date and the contractual dependence of the subscription service on the customer’s satisfaction with the professional services work. To date, the Company has concluded that all of the professional services included in multiple deliverable arrangements executed have standalone value. Multiple deliverables included in an arrangement are separated into different units of accounting and the arrangement consideration is allocated to the identified separate units based on a relative selling price hierarchy. The Company determines the relative selling price for a deliverable based on its vendor-specific objective evidence of selling price (“VSOE”), if available, or its best estimate of selling price (“BESP”), if VSOE is not available. The Company has determined that third-party evidence of selling price (“TPE”) is not a practical alternative due to differences in its service offerings compared to other parties and the availability of relevant third-party pricing information. The amount of revenue allocated to delivered items is limited by contingent revenue, if any. For certain professional services, the Company has established VSOE as a consistent number of standalone sales of these deliverables have been priced within a reasonably narrow range. The Company has not established VSOE for its subscription services due to lack of pricing consistency, the introduction of new services and other factors. Accordingly, the Company uses its BESP to determine the relative selling price for its subscription services. The Company determines BESP by considering its overall pricing objectives and market conditions. Significant pricing practices taken into consideration include the Company’s discounting practices, the size and volume of the Company’s transactions, the customer demographic, the geographic area where services are sold, price lists, its go-to-market strategy, historical standalone sales and contract prices. The determination of BESP is made through consultation with and approval by the Company’s management, taking into consideration the go-to-market strategy. As the Company’s go-to-market strategies evolve, the Company may modify its pricing practices in the future, which could result in changes in relative selling prices, including both VSOE and BESP. Deferred Revenue The deferred revenue balance does not represent the total contract value of annual or multi-year, non-cancelable subscription agreements. Deferred revenue primarily consists of billings or payments received in advance of revenue recognition from subscription services described above and is recognized as the revenue recognition criteria are met. The Company generally invoices customers in annual installments. The deferred revenue balance is influenced by several factors, including seasonality, the compounding effects of renewals, invoice duration, invoice timing, dollar size and new business linearity within the quarter. Deferred Commissions Deferred commissions are the incremental costs that are directly associated with non-cancelable subscription contracts with customers and consist of sales commissions paid to the Company’s direct sales force. The commissions are deferred and amortized over the non-cancelable terms of the related customer contracts, which are typically 12 to 36 months . The commission payments are paid in full the month after the customer’s service commences and are a direct and incremental cost of the revenue arrangements. The deferred commission amounts are recoverable through the future revenue streams under the non-cancelable customer contracts. The Company believes this is the preferable method of accounting as the commission charges are so closely related to the revenue from the non-cancelable customer contracts that they should be recorded as an asset and charged to expense over the same period that the subscription revenue is recognized. Amortization of deferred commissions is included in marketing and sales expense in the accompanying consolidated statements of operations. During the nine months ended October 31, 2017 , the Company deferred $372.7 million of commission expenditures and amortized $331.7 million to sales expense. During the same period a year ago, the Company deferred $227.0 million of commission expenditures and amortized $270.5 million to sales expense. Deferred commissions on the Company's consolidated balance sheets totaled $580.6 million at October 31, 2017 and $539.6 million at January 31, 2017 . 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. Cash and cash equivalents are stated at fair value. Marketable Securities The Company considers all of its marketable debt securities as available for use in current operations, including those with maturity dates beyond one year, and therefore classifies these securities within current assets on the consolidated balance sheets. Securities are classified as available for sale and are carried at fair value, with the change in unrealized gains and losses, net of tax, reported as a separate component on the consolidated statements of comprehensive income until realized. Fair value is determined based on quoted market rates when observable or utilizing data points that are observable, such as quoted prices, interest rates and yield curves. Declines in fair value judged to be other-than-temporary on securities available for sale are included as a reduction to investment income. In order to determine whether a decline in value is other-than-temporary, the Company evaluates, among other factors: the duration and extent to which the fair value has been less than the carrying value and its intent and ability to retain the investment for a period of time sufficient to allow for any anticipated recovery in fair value. For the purposes of computing realized and unrealized gains and losses, the cost of securities sold is based on the specific-identification method. Interest on securities classified as available for sale is also included as a component of investment income. Strategic Investments The Company holds certain marketable equity and non-marketable debt and equity securities within its strategic investments portfolio. Marketable equity securities are measured using quoted prices in their respective active markets, non-marketable debt securities are recorded at their estimated fair value and the non-marketable equity securities are recorded at cost. Marketable equity securities and non-marketable debt securities, which consist of noncontrolling debt investments in privately held companies, are recorded at fair value with changes in fair value recorded through accumulated other comprehensive income. Equity investments without readily determinable fair values for which the Company does not have the ability to exercise significant influence are accounted for using the cost method of accounting. Under the cost method of accounting, the non-marketable securities are carried at cost and are adjusted only for other-than-temporary impairments, certain distributions and additional investments. These investments are valued using significant unobservable inputs or data in an inactive market and the valuation requires the Company's judgment due to the absence of market prices and inherent lack of liquidity. The estimated fair value is based on quantitative and qualitative factors including, but not limited to, subsequent financing activities by the investee and projected discounted cash flows. Fair value is not estimated for non-marketable equity securities if there are no identified events or changes in circumstances that may have an effect on the fair value of the investment. The carrying value of the Company’s strategic investments is impacted by various events such as entering into new investments, dispositions due to acquisitions, fair market value adjustments or initial public offerings. The cash inflows from exits and cash outflows for new investments are disclosed as strategic investments within the investing activities section of the statement of cash flows and any gains or losses are recorded within the operating activities of the statements of cash flows for each of the respective fiscal quarter periods. Derivative Financial Instruments The Company enters into foreign currency derivative contracts with financial institutions to reduce foreign exchange risk. The Company uses forward currency derivative contracts to minimize the Company’s exposure to balances primarily denominated in the Euro, British Pound Sterling, Japanese Yen, Canadian Dollar and Australian Dollar. The Company’s foreign currency derivative contracts, which are not designated as hedging instruments, are used to reduce the exchange rate risk associated primarily with intercompany receivables and payables. The Company’s derivative financial instruments program is not designated for trading or speculative purposes. As of October 31, 2017 and January 31, 2017 , the foreign currency derivative contracts that were not settled were recorded at fair value on the consolidated balance sheets. Foreign currency derivative contracts are marked-to-market at the end of each reporting period with gains and losses recognized as other expense to offset the gains or losses resulting from the settlement or remeasurement of the underlying foreign currency denominated receivables and payables. While the contract or notional amount is often used to express the volume of foreign currency derivative contracts, the amounts potentially subject to credit risk are generally limited to the amounts, if any, by which the counterparties’ obligations under the agreements exceed the obligations of the Company to the counterparties. Fair Value Measurement The Company measures its cash and cash equivalents, marketable securities and foreign currency derivative contracts at fair value. The additional disclosures regarding the Company’s fair value measurements are included in Note 4 “Fair Value Measurement.” Property and Equipment Property and equipment are stated at cost. Depreciation is calculated on a straight-line basis over the estimated useful lives of those assets as follows: Computers, equipment and software 3 to 9 years Furniture and fixtures 5 years Leasehold improvements Shorter of the estimated lease term or 10 years Building and structural components Average weighted useful life of 32 years Building - leased facility 27 years Building improvements 10 years When assets are retired or otherwise disposed of, the cost and accumulated depreciation and amortization are removed from their respective accounts and any loss on such retirement is reflected in operating expenses. Capitalized Software Costs The Company capitalizes costs related to its enterprise cloud computing services and certain projects for internal use incurred during the application development stage. Costs related to preliminary project activities and post implementation activities are expensed as incurred. Internal-use software is amortized on a straight-line basis over its estimated useful life, which is generally three to five years. Management evaluates the useful lives of these assets on an annual basis and tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. Intangible Assets acquired through Business Combinations Intangible assets are amortized over their estimated useful lives. Each period, the Company evaluates the estimated remaining useful life of its intangible assets and whether events or changes in circumstances warrant a revision to the remaining period of amortization. Impairment Assessment The Company evaluates intangible assets and long-lived assets for possible impairment whenever events or changes in circumstances indicate that the carrying amount of such assets may not be recoverable. This includes but is not limited to significant adverse changes in business climate, market conditions, or other events that indicate an asset's carrying amount may not be recoverable. Recoverability of these assets is measured by comparing the carrying amount of each asset to the future undiscounted cash flows the asset is expected to generate. If the undiscounted cash flows used in the test for recoverability are less than the carrying amount of these assets, the carrying amount of such assets is reduced to fair value. The Company evaluates and tests the recoverability of its goodwill for impairment at least annually during its fourth quarter of each fiscal year or more often if and when circumstances indicate that goodwill may not be recoverable. There was no impairment of intangible assets, long-lived assets or goodwill during the three and nine months ended October 31, 2017 and 2016 . Business Combinations The Company uses its best estimates and assumptions to accurately assign fair value to the tangible and intangible assets acquired and liabilities assumed at the acquisition date. The Company’s estimates are inherently uncertain and subject to refinement. During the measurement period, which may be up to one year from the acquisition date, the Company may record adjustments to the fair value of these tangible and intangible assets acquired and liabilities assumed, with the corresponding offset to goodwill. In addition, uncertain tax positions and tax-related valuation allowances are initially established in connection with a business combination as of the acquisition date. The Company continues to collect information and reevaluates these estimates and assumptions quarterly and records any adjustments to the Company’s preliminary estimates to goodwill provided that the Company is within the measurement period. Upon the conclusion of the measurement period or final determination of the fair value of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are recorded to the Company’s consolidated statements of operations. In the event the Company acquires an entity with which the Company has a preexisting relationship, the Company will recognize a gain or loss to settle that relationship as of the acquisition date, which is recorded in other income (expense) within the statements of operations. In the event that the Company acquires an entity in which the Company previously held a strategic investment, the difference between the fair value of the shares as of the date of the acquisition and the carrying value of the strategic investment is recorded as a gain or loss and disclosed separately within the statements of operations. Leases and Asset Retirement Obligations The Company categorizes leases at their inception as either operating or capital leases. In certain lease agreements, the Company may receive rent holidays and other incentives. The Company recognizes lease costs on a straight-line basis once control of the space is achieved, without regard to deferred payment terms such as rent holidays that defer the commencement date of required payments. Additionally, incentives received are treated as a reduction of costs over the term of the agreement. The Company establishes assets and liabilities for the present value of estimated future costs to retire long-lived assets at the termination or expiration of a lease. Such assets are depreciated over the lease period to operating expense. In the event the Company is the deemed owner for accounting purposes during construction, the Company records assets and liabilities for the estimated construction costs incurred under build-to-suit lease arrangements to the extent it is involved in the construction of structural improvements or takes construction risk prior to commencement of a lease. The Company additionally has entered into subleases for unoccupied leased office space. To the extent there are losses associated with the sublease, they are recognized in the period the sublease is executed. Gains are recognized over the sublease life. Any sublease payments received in excess of the straight-line rent payments for the sublease are recorded in other income (expense). Accounting for Stock-Based Expense The Company recognizes stock-based expenses related to stock options and restricted stock awards on a straight-line basis, net of forfeitures, over the requisite service period of the awards, which is generally the vesting term of four years . The Company recognizes stock-based expenses related to shares issued pursuant to its Amended and Restated 2004 Employee Stock Purchase Plan (“ESPP” or “2004 Employee Stock Purchase Plan”) on a straight-line basis over the offering period, which is 12 months . Stock-based expenses related to performance share grants are measured based on grant date fair value and expensed on a straight-line basis over the service period of the awards, which is generally the vesting term of three years. The Company, at times, grants unvested restricted shares to employee stockholders of certain acquired companies in lieu of cash consideration. These awards are generally subject to continued post-acquisition employment. Therefore, the Company accounts for them as post-acquisition stock-based expense. The Company recognizes stock-based expense equal to the grant date fair value of the restricted stock awards on a straight-line basis over the requisite service period of the awards, which is generally four years . Income Taxes The Company uses the asset and liability method of accounting for income taxes. Under this method, deferred tax assets and liabilities are determined based on temporary differences between the financial statement and tax basis of assets and liabilities using enacted tax rates in effect for the year in which the differences are expected to reverse. The effect on deferred tax assets and liabilities of a change in tax laws is recognized in the consolidated statements of operations in the period that includes the enactment date. The Company’s tax positions are subject to income tax audits by multiple tax jurisdictions throughout the world. The Company recognizes the tax benefit of an uncertain tax position only if it is more likely than not that the position is sustainable upon examination by the taxing authority, solely based on its technical merits. The tax benefit recognized is measured as the largest amount of benefit which is greater than 50 percent likely to be realized upon settlement with the taxing authority. The Company recognizes interest accrued and penalties related to unrecognized tax benefits in the income tax provision. Valuation allowances are established when necessary to reduce deferred tax assets to the amounts that are more likely than not expected to be realized based on the weighting of positive and negative evidence. Future realization of deferred tax assets ultimately depends on the existence of sufficient taxable income of the appropriate character (for example, ordinary income or capital gain) within the carryback or carryforward periods available under the applicable tax law. The Company regularly reviews the deferred tax assets for recoverability based on historical taxable income, projected future taxable income, the expected timing of the reversals of existing temporary differences and tax planning strategies. The Company’s judgments regarding future profitability may change due to many factors, including future market conditions and the ability to successfully execute its business plans and/or tax planning strategies. Should there be a change in the ability to recover deferred tax assets, the tax provision would increase or decrease in the period in which the assessment is changed. Foreign Currency Translation The functional currency of the Company’s major foreign subsidiaries is generally the local currency. Adjustments resulting from translating foreign functional currency financial statements into U.S. dollars are recorded as a separate component on the consolidated statements of comprehensive income. Foreign currency transaction gains and losses are included in Other income (expense) in the consolidated statements of operations for the period. All assets and liabilities denominated in a foreign currency are translated into U.S. dollars at the exchange rate on the balance sheet date. Revenues and expenses are translated at the average exchange rate during the period. Equity transactions are translated using historical exchange rates. Warranties and Indemnification The Company’s enterprise cloud computing services are typically warranted to perform in a manner consistent with general industry standards that are reasonably applicable and materially in accordance with the Company’s online help documentation under normal use and circumstances. The Company’s arrangements generally include certain provisions for indemnifying customers against liabilities if its products or services infringe a third party’s intellectual property rights. To date, the Company has not incurred any material costs as a result of such obligations and has not accrued any material liabilities related to such obligations in the accompanying consolidated financial statements. The Company has also agreed to indemnify its directors and executive officers for costs associated with any fees, expenses, judgments, fines and settlement amounts incurred by any of these persons in any action or proceeding to which any of those persons is, or is threatened to be, made a party by reason of the person’s service as a director or officer, including any action by the Company, arising out of that person’s services as the Company’s director or officer or that person’s services provided to any other company or enterprise at the Company’s request. The Company maintains director and officer insurance coverage that would generally enable the Company to recover a portion of any future amounts paid. The Company may also be subject to indemnification obligations by law with respect to the actions of its employees under certain circumstances and in certain jurisdictions. New Accounting Pronouncements Adopted in Fiscal 2018 In January 2017, the Financial Accounting Standards Board ("FASB") issued Accounting Standards Update No. 2017-01, "Business Combinations (Topic 805) Clarifying the Definiti |