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, industry-specific solutions, analytics, application development, IoT integration, collaborative productivity tools, an enterprise cloud marketplace which the Company refers to as the AppExchange, and its professional cloud services. Fiscal Year The Company’s fiscal year ends on January 31. References to fiscal 2019 , for example, refer to the fiscal year ending January 31, 2019 . Basis of Presentation The accompanying condensed consolidated balance sheets as of April 30, 2018 and January 31, 2018 and the condensed consolidated statements of operations, condensed consolidated statements of comprehensive income and condensed consolidated statements of cash flows for the three months ended April 30, 2018 and 2017 , 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 condensed consolidated financial statements include all adjustments necessary for the fair presentation of the Company’s balance sheets as of April 30, 2018 and January 31, 2018 , and its results of operations, including its comprehensive income , and its cash flows for the three months ended April 30, 2018 and 2017 . All adjustments are of a normal recurring nature. The results for the three months ended April 30, 2018 are not necessarily indicative of the results to be expected for any subsequent quarter or for the fiscal year ending January 31, 2019 . These unaudited interim condensed 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, 2018 , filed with the Securities and Exchange Commission (the “SEC”) on March 9, 2018 . The Company has adjusted its condensed consolidated financial statements from amounts previously reported due to the adoption of Accounting Standards Update No. 2014-09, “Revenue from Contracts with Customers (Topic 606)” (“ASU 2014-09”) as discussed below. In addition, the Company prospectively adopted Accounting Standards Update No. 2016-01, "Financial Instrument-Overall (Subtopic 825-10)" ("ASU 2016-01") and Accounting Standards Update No. 2016-16, "Income Taxes (Topic 740): Intra-Entity Transfers of Assets Other Than Inventory" ("ASU 2016-16"), as discussed below. 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 condensed consolidated financial statements and notes thereto. Significant estimates and assumptions made by management include the determination of: • the standalone selling price (SSP) of performance obligations for contracts with multiple performance obligations; • the estimate of variable consideration as part of the adoption of ASU 2014-09; • the fair value of assets acquired and liabilities assumed for business combinations; • the recognition, measurement and valuation of current and deferred income taxes; • the average period of benefit associated with costs capitalized to obtain revenue contracts; • the fair value of certain stock awards issued; • the useful lives of intangible assets; and • the valuation of strategic investments. 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 condensed 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 condensed 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. Collateral is not required for accounts receivable. 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 the recorded allowance when the Company has exhausted collection efforts without success. No single customer accounted for more than five percent of accounts receivable at April 30, 2018 and January 31, 2018 . No single customer accounted for five percent or more of total revenue during the three months ended April 30, 2018 and 2017 . As of April 30, 2018 and January 31, 2018 , assets located outside the Americas were 12 percent and 17 percent of total assets, respectively. As of April 30, 2018 and January 31, 2018 , assets located in the United States were 86 percent and 81 percent of total assets, respectively. Revenue Recognition Adoption of Topic 606 Effective at the start of fiscal 2019, the Company adopted the provisions and expanded disclosure requirements described in ASU 2014-09 also referred to as Topic 606. The Company adopted the standard using the full retrospective method. Accordingly, the results for the prior comparable period were adjusted to conform to the current period measurement and recognition of results. The impact of Topic 606 on reported revenue results was not material. Topic 606, however, modified the Company’s revenue recognition policy in the following ways: • Removal of the limitation on contingent revenue, which can result in the subscription and support revenue for certain multi-year customer contracts being recognized earlier in the duration of the contract term; • More allocation of subscription and support revenues across the Company’s cloud service offerings and to professional services revenue; and • Inclusion of an estimate of variable consideration, such as overage fees, in the total transaction price, which results in the estimated fees being recognized ratably over the contract term, further resulting in the recognition of subscription and support revenues before the actual variable consideration occurs. The Company used the following transitional practical expedients in the adoption of Topic 606: • the Company has not disclosed the remaining transaction price for reporting periods prior to the first quarter of fiscal 2019; and • contracts modified before fiscal 2017 were reflected using the retrospective method. Additionally, as part of its business strategy, the Company periodically makes acquisitions of complementary businesses, services and technology. These acquired businesses may have customer arrangements that include the delivery of an on-premise software element combined with a software-as-a-service element. The Company has to apply significant judgment to determine the appropriate revenue recognition policy for such products and services since Topic 606 eliminated the provision that service revenue accounting was appropriate when the relative selling price of one or more deliverables in a multiple element solution arrangement could not be determined. Revenue Recognition Policy 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 (collectively, "Cloud 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 and implementation services. Other revenue consists primarily of training fees. With the adoption of Topic 606, revenue is recognized upon transfer of control of promised products and services to customers in an amount that reflects the consideration the Company expects to receive in exchange for those products or services. If the consideration promised in a contract includes a variable amount, for example, overage fees, contingent fees or service level penalties, the Company includes an estimate of the amount it expects to receive for the total transaction price if it is probable that a significant reversal of cumulative revenue recognized will not occur. The Company determines the amount of revenue to be recognized through application of 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 the performance obligations. 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 comprised of fees that provide customers with access to Cloud Services, related support and updates during the term of the arrangement. Cloud Services allow customers to use the Company's multi-tenant software without taking possession of the software. Revenue is generally recognized ratably over the contract term beginning on the commencement date of each contract, which is the date the Company’s Cloud Services are made available to customers. The Company typically invoices its customers annually in advance upon execution of the contract or subsequent renewals. Amounts that have been invoiced are recorded in accounts receivable and in unearned revenue or revenue, depending on whether transfer of control to customers has occurred. 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 or on a proportional performance basis 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. Significant Judgments - Contracts with Multiple Performance Obligations The Company enters into contracts with its customers that often include promises to transfer multiple Cloud Services, premium support and professional services. A performance obligation is a promise in a contract with a customer to transfer products or services that are distinct. Determining whether products and services are distinct performance obligations that should be accounted for separately or combined as one unit of accounting may require significant judgment. Cloud Services are distinct as such services are often sold separately. In determining whether professional services are distinct, 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 Cloud Service start date and the contractual dependence of the Cloud 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 contracts with multiple performance obligations are distinct. The Company allocates the transaction price to each performance obligation on a relative standalone selling price ("SSP") basis. The SSP is the price at which the Company would sell a promised product or service separately to a customer. Judgment is required to determine the SSP for each distinct performance obligation. The Company determines SSP 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 sales and contract prices. The determination of SSP 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 to SSP. In certain cases, the Company is able to establish SSP based on observable prices of products or services sold separately in comparable circumstances to similar customers. The Company uses a single amount to estimate SSP when it has observable prices. If SSP is not directly observable, for example when pricing is highly variable, the Company uses a range of SSP. The Company determines the SSP range using information that may include market conditions or other observable inputs. The Company typically has more than one SSP for individual products and services due to the stratification of those products and services by customer size and geography. Costs Capitalized to Obtain Revenue Contracts As part of its adoption of ASU 2014-09, the Company capitalizes incremental costs of obtaining a non-cancelable subscription and support revenue contract. The provisions of ASU 2014-09 are significantly different than the Company's previous accounting for deferred commissions. The new guidance results in the capitalization of significantly more costs and longer amortization lives. Under the prior accounting guidance, the Company only capitalized sales commissions that had a direct relationship to a specific new revenue contract and amortized the capitalized amounts over the initial contract period, which was typically 12 to 36 months. Under the new accounting, the capitalized amounts consist primarily of sales commissions paid to the Company’s direct sales force. Capitalized amounts also include (1) amounts paid to employees other than the direct sales force who earn incentive payouts under annual compensation plans that are tied to the value of contracts acquired, (2) commissions paid to employees upon renewals of subscription and support contracts, (3) the associated payroll taxes and fringe benefit costs associated with the payments to the Company’s employees, and to a lesser extent (4) success fees paid to partners in emerging markets where the Company has a limited presence. Costs capitalized related to new revenue contracts are amortized on a straight-line basis over four years , which, although longer than the typical initial contract period, reflects the average period of benefit, including expected contract renewals. In arriving at this average period of benefit, the Company evaluated both qualitative and quantitative factors which included the estimated life cycles of its offerings and its customer attrition. Additionally, the Company amortizes capitalized costs for renewals and success fees paid to partners over two years . The capitalized amounts are recoverable through future revenue streams under all non-cancelable customer contracts. The Company periodically evaluates whether there have been any changes in its business, the market conditions in which it operates or other events which would indicate that its amortization period should be changed or if there are there are potential indicators of impairment. Amortization of capitalized costs to obtain revenue contracts is included in marketing and sales expense in the accompanying condensed consolidated statements of operations. During the three months ended April 30, 2018 , the Company capitalized $118 million of costs to obtain revenue contracts and amortized $188 million to marketing and sales expense. During the same period a year ago, the Company capitalized $133 million of costs to obtain revenue contracts and amortized $141 million to marketing and sales expense. Capitalized costs to obtain a revenue contract, net on the Company's condensed consolidated balance sheets totaled $1.7 billion at April 30, 2018 and $1.8 billion at January 31, 2018 . 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 condensed 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 condensed 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. 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 strategic investments in publicly held equity securities and privately held debt and equity securities in which the Company does not have a controlling interest or significant influence. Publicly held equity securities are measured using quoted prices in their respective active markets with changes recorded through net gains on strategic investments on the condensed consolidated statement of operations. Privately held equity securities without a readily determinable fair value are recorded at cost and adjusted for impairments and observable price changes with a same or similar security from the same issuer and are recorded through net gains on strategic investments on the condensed consolidated statement of operations. Privately held debt securities are recorded at fair value with changes in fair value recorded through accumulated other comprehensive income on the condensed consolidated balance sheet. If, based on the terms of these publicly traded and privately held securities, the Company determines that the Company exercises significant influence on the entity to which these securities relate, the Company will apply the equity method of accounting for such investments. Privately held debt and equity securities 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 carrying value is not adjusted for the Company's privately held equity securities if there are no observable price changes in a same or similar security from the same issuer or if there are no identified events or changes in circumstances that may indicate impairment, as discussed below. In determining the estimated fair value of its strategic investments in privately held companies, the Company utilizes the most recent data available to the Company. Valuations of privately held companies are inherently complex due to the lack of readily available market data. In addition, the determination of whether an orderly transaction is for a similar investment requires significant management judgment including: the rights and obligations of the investments, the extent to which those differences would affect the fair values of those investments, and the impact of any differences based on the stage of operational development of the investee. The Company assesses its strategic investments portfolio quarterly for impairment. The Company’s impairment analysis encompasses an assessment of the severity and duration of the impairment and qualitative and quantitative analysis of other key factors including: the investee’s financial metrics, the investee’s products and technologies meeting or exceeding predefined milestones, market acceptance of the product or technology, other competitive products or technology in the market, general market conditions, management and governance structure of the investee, the investee’s liquidity, debt ratios and the rate at which the investee is using its cash. If the investment is considered to be other-than-temporarily impaired, the Company will record the investment at fair value by recognizing an impairment through the condensed consolidated statement of operations and establishing a new carrying value for the investment. 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 April 30, 2018 and January 31, 2018 , the outstanding foreign currency derivative contracts were recorded at fair value on the condensed 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 5 “Fair Value Measurement.” In addition, the Company measures its publicly held equity securities at fair value. The additional disclosure regarding the Company's fair value measurements of its strategic investments are included in Note 3 "Investments." 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. Management tests for impairment whenever events or changes in circumstances occur that could impact the recoverability of these assets. 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 capitalized software, intangible assets, long-lived assets or goodwill during the three months ended April 30, 2018 and 2017 . Business Combinations The Company uses its best estimates and assumptions to 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 recorded 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 condensed consolidated statement 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 condensed consolidated 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 recorded within net gains on strategic investments in the condensed consolidated statement 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). Stock-Based Expense The Company recognizes stock-based expenses related to stock options and restricted stock awards on a straight-line basis, net of estimated 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 . The ESPP allows employees to purchase shares of the Company's common stock at a 15 percent discount and also allows employees to reduce their percentage election once during a six month purchase period (December |