Summary of business and significant accounting policies | Summary of business and significant accounting policies Business HealthEquity, Inc. was incorporated in the state of Delaware on September 18, 2002. HealthEquity, Inc. is a leader in administering health savings accounts (“HSAs”) and complementary consumer-directed benefits (“CDBs”), which empower consumers to access tax-advantaged healthcare savings while also providing corporate tax advantages for employers. In February 2006, HealthEquity, Inc. received designation by the U.S. Department of Treasury to act as a passive non-bank custodian, which allows HealthEquity, Inc. to hold custodial assets for individual account holders. On July 24, 2017, HealthEquity, Inc. received designation by the U.S. Department of Treasury to act as both a passive and non-passive non-bank custodian, which allows HealthEquity, Inc. to hold custodial assets for individual account holders and use discretion to direct investment of such assets held. As a passive and non-passive non-bank custodian according to Treasury Regulations section 1.408-2(e)(5)(ii)(B), the Company must maintain net worth (assets minus liabilities) greater than the sum of 2% of passive custodial funds held at each calendar year-end and 4% of the non-passive custodial funds held at each calendar year-end in order to take on additional custodial assets. The accompanying financial statements have been prepared in conformity with accounting principles generally accepted in the United States of America, or GAAP. The financial statements and notes are representations of the Company's management, which is responsible for their integrity and objectivity. These accounting policies conform to accounting principles generally accepted in the United States and have been consistently applied in the preparation of the consolidated financial statements, except for the new accounting pronouncements adopted during the year ended January 31, 2020, as described below. Certain reclassifications have been made to prior year amounts to conform to the current year presentation. Acquisition of WageWorks, Inc. On August 30, 2019, HealthEquity, Inc. closed the acquisition of WageWorks, Inc. (“WageWorks”), pursuant to an Agreement and Plan of Merger (the “Merger Agreement”), for $51.35 per share in cash, or approximately $2.0 billion to WageWorks stockholders (the “Acquisition”). As a result of the Acquisition, HealthEquity, Inc. gained access to more of the HSA market by expanding its direct distribution to employers and benefits advisors as a single source provider of HSAs and other CDBs, including flexible spending accounts, health reimbursement arrangements, COBRA administration, commuter and other benefits. Principles of consolidation The consolidated financial statements include the accounts of HealthEquity, Inc., and its direct and indirect subsidiaries. All significant intercompany accounts and transactions have been eliminated in consolidation. Segments The Company operates in one segment. Management uses one measurement of profitability and does not segregate its business for internal reporting. All long-lived assets are maintained in the United States of America. Cash and cash equivalents The Company considers all highly liquid investments purchased with an original maturity of three months or less to be cash equivalents. The Company’s cash and cash equivalents were held in institutions in the U.S. and include deposits in a money market account that was unrestricted as to withdrawal or use. Client-held funds Many of the Company's client services agreements with employers (referred to as "Clients") provide that Clients remit funds to the Company to pre-fund Client and employee participant contributions related to flexible spending accounts and health reimbursement arrangements (“FSAs” and “HRAs”, respectively) and commuter accounts. These Client-held funds remitted to the Company do not represent cash assets of the Company to the extent that they are not combined with corporate cash, and accordingly are not included in cash and cash equivalents on the Company's consolidated balance sheets. Prior to the closing of the Acquisition, Wageworks included all Client-held funds with its corporate cash assets on its balance sheet, with an offsetting Client-held funds obligation. As of the closing of the Acquisition on August 30, 2019, WageWorks held approximately $682 million of Client-held funds, of which $220 million was combined with its corporate cash within WageWorks' corporate bank accounts; therefore, the Company determined that this $220 million of Client-held funds were assets of the Company, while the approximately $462 million of remaining Client-held funds were not assets of the Company. As of January 31, 2020, $4 million of Client-held funds remained combined within the Company's corporate bank accounts and therefore remained on the Company's consolidated balance sheets in cash and cash equivalents, with an offsetting liability included in accrued liabilities. Accounts receivable Accounts receivable represent monies due to the Company for monthly service revenue, custodial revenue and interchange revenue. The Company maintains an allowance for doubtful accounts to reserve for potentially uncollectible receivable amounts. In evaluating the Company’s ability to collect outstanding receivable balances, the Company considers various factors including the age of the balance, the creditworthiness of the customer, which is assessed based on ongoing credit evaluations and payment history, and the customer’s current financial condition. As of January 31, 2020 and 2019, the Company had allowance for doubtful accounts of $1.2 million and $0.1 million, respectively. During the years ended January 31, 2020 and 2019, the Company recorded credit losses from trade receivables of $1.0 million and $0.2 million, respectively. Investments Marketable equity securities are strategic equity investments with readily determinable fair values for which the Company does not have the ability to exercise significant influence. These securities are accounted for at fair value and were classified as investments on the consolidated balance sheets. All gains and losses on these investments, realized and unrealized, are recognized in other expense, net in the consolidated statements of operations and comprehensive income. As a result of the Acquisition on August 30, 2019, the Company's marketable equity security investment in WageWorks was canceled. Non-marketable equity securities are strategic equity investments without readily determinable fair values for which the Company does not have the ability to exercise significant influence. These securities are accounted for using the measurement alternative and are classified as other assets on the consolidated balance sheets. All gains and losses on these investments, realized and unrealized, are recognized in other expense, net on the consolidated statements of operations and comprehensive income. Equity method investments are equity securities in investees the Company does not control but over which the Company has the ability to exercise significant influence. Equity method investments are included in other assets on the consolidated balance sheets. The Company's share of the earnings or losses as reported by equity method investees, amortization of basis differences, and related gains or losses, if any, are recognized in other expense, net on the consolidated statements of operations and comprehensive income. The Company assesses whether an other-than-temporary impairment loss on equity method investments and an impairment loss on non-marketable equity securities has occurred due to declines in fair value or other market conditions. If any impairment is considered other than temporary for equity method investments or impairment is identified for non-marketable equity securities, the Company will write down the investment to its fair value and record the corresponding charge through other expense, net in the consolidated statements of operations and comprehensive income. Other assets Other assets consist primarily of contract costs, debt issuance costs, prepaid expenditures, income tax receivables, inventories, and various other assets. Amounts expected to be recouped or recognized over a period of twelve months or less have been classified as current in the accompanying consolidated balance sheets. Leases The Company determines if a contract contains a lease at inception or any modification of the contract. A contract contains a lease if the contract conveys the right to control the use of an identified asset for a specified period in exchange for consideration. Control over the use of the identified asset means the lessee has both (a) the right to obtain substantially all of the economic benefits from the use of the asset and (b) the right to direct the use of the asset. Leases with an expected term of 12 months or less at commencement are not accounted for on the balance sheet. All operating lease expense is recognized on a straight-line basis over the expected lease term. Certain leases also include obligations to pay for non-lease services, such as utilities and common area maintenance. The services are accounted for separately from lease components, and the Company allocates payments to the lease and other services components based on estimated stand-alone prices. Operating lease right-of-use ("ROU") assets and liabilities are recognized based on the present value of future minimum lease payments over the expected lease term at commencement date. As the rate implicit in each lease is not readily determinable, management uses the Company’s incremental borrowing rate based on the information available at commencement date in determining the present value of future payments. The Company used its incremental borrowing rate on February 1, 2019 for all leases that commenced prior to that date. Operating leases are included in operating lease right-of-use assets, operating lease liabilities and operating lease liabilities, non-current on the consolidated balance sheets beginning February 1, 2019. Property and equipment Property and equipment, including leasehold improvements, are stated at cost less accumulated depreciation. Depreciation is determined using the straight-line method over the estimated useful lives of individual assets. The useful life for leasehold improvements is the shorter of the estimated useful life or the term of the lease ranging from 3-5 years. The useful life used for computing depreciation for all other asset classes is described below: Computer equipment 3-5 years Furniture and fixtures 5 years Maintenance and repairs are expensed when incurred, and improvements that extend the economic useful life of an asset are capitalized. Gains and losses on the disposal of property and equipment are reflected in operating expenses. Intangible assets, net Intangible assets are carried at cost and amortized, typically, on a straight-line basis over their estimated useful lives. The useful life used for computing amortization for all intangible asset classes is described below: Software and software development costs 3 years Acquired customer relationships 10-15 years Acquired developed technology 2-5 years Acquired trade names and trademarks 3 years Acquired HSA portfolios 15 years We account for the costs of computer software developed or obtained for internal use in accordance with Accounting Standards Codification (“ASC”) 350-40, “Internal-Use Software.” Costs incurred during operation and post-implementation stages are charged to expense. Costs incurred during the application development stage that are directly attributable to developing or obtaining software for internal use are capitalized. Management’s judgment is required in determining the point when various projects enter the stages at which costs may be capitalized, in assessing the ongoing value of the capitalized costs and in determining the estimated useful lives over which the costs are amortized. Acquired customer relationships, developed technology, and trade names and trade marks are valued utilizing the discounted cash flow method, a form of the income approach. The useful lives of acquired customer relationships were estimated based on future revenue growth and attrition. The useful lives of developed technology and trade names were estimated based on expected obsolescence. The Company expenses the assets straight-line over the useful lives, and determined that this amortization method is appropriate to reflect the pattern over which the economic benefits of these acquired assets are realized. Acquired HSA portfolios consist of the contractual rights to administer the activities related to the individual HSAs acquired. The Company used its HSA customer relationship period assumption and the historical attrition rates of member accounts to determine that an average useful life of 15 years and the use of a straight-line amortization method are appropriate to reflect the pattern over which the economic benefits of existing member assets are realized. The Company reviews identifiable amortizable intangible assets to be held and used for impairment whenever events or changes in circumstances indicate that the carrying value of the assets may not be recoverable. Determination of recoverability is based on the lowest level of identifiable estimated undiscounted cash flows resulting from use of the asset and its eventual disposition. Measurement of any impairment loss is based on the excess of the carrying value of the asset over its fair value. During the year ended January 31, 2019, the Company incurred a loss on disposal of approximately $0.7 million of previously capitalized software development costs. No impairment charges were recorded during the years ended January 31, 2020 or 2018. Goodwill Goodwill represents the excess of the purchase price over the fair value of the net tangible and intangible assets acquired in a business combination. Goodwill is not amortized, but is tested for impairment annually on January 31 or more frequently if events or changes in circumstances indicate that the asset may be impaired. The Company’s impairment tests are based on a single operating segment and reporting unit structure. The goodwill impairment test involves a qualitative assessment to compare a reporting unit's fair value to its carrying value. If it is determined that it is more likely than not that a reporting unit's fair value is less than its carrying value, a quantitative comparison is made between the Company's market capitalization and the carrying value of the reporting unit, including goodwill. If the carrying value of the reporting unit exceeds its fair value, an impairment charge is recognized for the excess of the carrying value of goodwill over its implied fair value. The Company’s annual goodwill impairment test resulted in no impairment charges in any of the periods presented in the accompanying consolidated financial statements. Self-insurance The Company is self-insured for medical insurance up to certain annual stop-loss limits. The Company establishes a liability as of the balance sheet date for claims, both reported and incurred but not reported, using currently available information as well as historical claims experience, and as determined by an independent third party. Other long-term liabilities Other long-term liabilities consists of long-term deferred revenue and other liabilities that the Company does not expect to settle within one year. Revenue recognition The Company recognizes revenue when control of the promised goods or services is transferred to its customers, in an amount that reflects the consideration it expects to be entitled to in exchange for those goods or services. The Company determines revenue recognition through 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, we satisfy a performance obligation. Disaggregation of revenue. The Company's primary sources of revenue are service, custodial, and interchange revenue and are disclosed in the consolidated statements of operations and comprehensive income. All of the Company's sources of revenue are deemed to be revenue contracts with customers. Each revenue source is affected differently by economic factors as it relates to the nature, amount, timing and uncertainty. Costs to obtain a contract. ASC 606 requires capitalizing the costs of obtaining a contract when those costs are expected to be recovered. As of January 31, 2020, the net amount capitalized as contract costs was $21.8 million, which is included in other current assets and other assets. Amortization of capitalized contract costs during the year ended January 31, 2020 was $1.9 million. In order to determine the amortization period for sales commissions contract costs, the Company applied the portfolio approach. Accordingly, the amortization period of the assets has been determined to be the average economic life of an HSA or CDB relationship, which is estimated to be 15 years and 7 years, respectively. Amortization of capitalized sales commission contract costs is included in sales and marketing expenses in the consolidated statements of operations and comprehensive income. Performance obligations. ASC 606 requires disclosure of the aggregate amount of the transaction price allocated to unsatisfied performance obligations; however, as permitted by ASC 606, the Company has elected to exclude from this disclosure any contracts with an original duration of one year or less and any variable consideration that meets specified criteria. Amounts excluded are not significant to the Company's consolidated statements of operations and comprehensive income. Service revenue. The Company hosts its platforms, prepares statements, provides a mechanism for spending funds, and provides customer support services. All of these services are consumed as they are received. The Company will continue to recognize service revenue, in an amount that reflects the consideration it expects to be entitled to in exchange for those services, on a monthly basis as it satisfies its performance obligations. Custodial revenue. The Company deposits HSA assets at federally insured custodial depository partners, which we refer to as our Depository Partners, and investment assets with an investment partner. The deposit of funds represents a service that is simultaneously received and consumed by our Depository Partners and investment partner. The Company will continue to recognize custodial revenue, in an amount that reflects the consideration it expects to be entitled to in exchange for the service, each month based on the amount received by its custodial partners and investment partners. Interchange revenue. The Company satisfies its interchange performance obligation each time payments are made with its cards via payment networks. The Company will continue to recognize interchange revenue, in an amount that reflects the consideration it expects to be entitled to in exchange for the service, in the month the payment transaction occurs. Contract balances. The Company does not recognize revenue in advance of invoicing its customers and therefore has no related contract assets. The Company records a receivable when revenue is recognized prior to payment and the Company has unconditional right to payment. Alternatively, when payment precedes the related services, the Company records a contract liability, or deferred revenue, until its performance obligations are satisfied. The Company's deferred revenue increased from $0.4 million as of January 31, 2019 to $3.7 million as of January 31, 2020, primarily due to the Acquisition. The balances are related to cash received in advance for a certain interchange revenue arrangement, other up-front fees and other commuter deferred revenue, and are generally recognized within twelve months, with the exception of the interchange arrangement, which is generally recognized over a five Significant judgments. The Company makes no significant judgments in determining the amount or timing of revenue recognition. The Company has estimated the average economic life of an HSA or CDB member relationship, which which has been determined to be the amortization period for the capitalized sales commissions contract costs. Practical expedients. The Company has applied the practical expedient which allows an entity to account for incremental costs of obtaining a contract at a portfolio level. The Company has also applied the practical expedient to recognize incremental costs of obtaining contracts as an expense when incurred if the amortization period would have been one year or less. Cost of revenue The Company incurs cost of revenue related to servicing member accounts, managing customer and partner relationships, and processing reimbursement claims. Expenditures include personnel-related costs, depreciation, amortization, stock-based compensation, common expense allocations, new member and participant supplies and other operating costs of the Company’s related member account servicing departments. Other components of the Company’s cost of revenue sold include interest retained by members on custodial assets held and interchange costs incurred in connection with processing card transactions initiated by members. Stock-based compensation The Company grants stock-based awards, which consist of stock options, restricted stock units ("RSUs") and restricted stock awards ("RSAs"), to certain team members, executive officers, and directors. The Company recognizes compensation expense for stock-based awards based on the grant date estimated fair value. Expense for stock-based awards is generally recognized on a straight-line basis over the requisite service period, and is reversed as pre-vesting forfeitures occur. The fair value of stock options is determined using the Black-Scholes option pricing model. The determination of fair value for stock options on the date of grant using an option pricing model requires management to make certain assumptions regarding a number of complex and subjective variables. The fair value of RSUs and RSAs is based on the current value of the Company's closing stock price on the date of grant less the present value of future expected dividends discounted at the risk-free interest rate. At the closing of the Acquisition, and in accordance with the Merger Agreement, certain service-based RSUs with respect to WageWorks common stock were replaced by the Company and converted into RSUs with respect to common stock of the Company. Certain other WageWorks equity awards were exchanged for cash. The fair value of awards that were replaced or exchanged for cash was measured as of the Acquisition date, and a portion of the fair value, which represented the pre-Acquisition service provided by team members to WageWorks, was included in the total consideration paid as part of the Acquisition. The remaining fair value represents post-Acquisition share-based compensation expense. For stock-based awards with performance conditions, the Company evaluates the probability of achieving the performance criteria and of the number of shares that are expected to vest, and compensation expense is then adjusted to reflect the number of shares expected to vest and the requisite service period. For awards with performance conditions, compensation expense is recognized using the graded-vesting attribution method in accordance with the provisions of FASB ASC Topic 718, Compensation—Stock Compensation ("Topic 718") . Upon the exercise of a stock option or release of an RSU/RSA, common shares are issued from authorized, but not outstanding, common stock. Interest Expense Interest expense consists of accrued interest expense and amortization of deferred financing costs associated with our credit agreement. Income tax provision The Company accounts for income taxes and the related accounts under the liability method as set forth in the authoritative guidance for accounting for income taxes. Under this method, current tax liabilities and assets are recognized for the estimated taxes payable or refundable on the tax returns for the current fiscal year. Deferred tax assets and liabilities are recognized for the future tax consequences attributable to differences between the financial statement carrying amounts of existing assets and liabilities and their respective tax bases, for net operating losses, and for tax credit carryforwards. Deferred tax assets and liabilities are measured using enacted statutory tax rates expected to apply to taxable income in the years in which those temporary differences are expected to be realized or settled. The effect on deferred tax assets and liabilities of changes in tax rates is recognized in income in the period that includes the enactment date. A valuation allowance is provided for when it is more likely than not that some or all of the deferred tax assets may not be realized in future years. After weighing both the positive and negative evidence, the Company has recorded a valuation allowance with respect to realized capital losses for which the Company does not expect to generate capital gains in order to utilize the capital losses in the future and with respect to certain insignificant state credits which are not expected to be utilized before they expire. The Company believes that it is more likely than not that all other deferred tax assets will be realized as of January 31, 2020. The Company uses the tax law ordering approach of intraperiod allocation in determining when excess tax benefits have been realized for provisions of the tax law that identify the sequence in which those amounts are utilized for tax purposes. The Company has also elected to exclude the indirect tax effects of share-based compensation deductions in computing the income tax provision recorded within the consolidated statement of operations and comprehensive income. Also, the Company uses the portfolio approach in releasing income tax effects from accumulated other comprehensive income. The Company recognizes the tax benefit from an uncertain tax position taken or expected to be taken in a tax return using a two-step approach. The first step is to evaluate the tax position taken or expected to be taken in a tax return by determining if the weight of available evidence indicates that it is more likely than not that the tax position will be sustained upon examination by the relevant taxing authorities, based on the technical merits of the position. For tax positions that are more likely than not to be sustained upon audit, the second step is to measure the tax benefit in the financial statements as the largest benefit that has a greater than 50% likelihood of being sustained upon settlement. The Company recognizes interest and penalties, if any, related to unrecognized tax benefits as a component of other expense in the Consolidated Statements of Operations and Comprehensive Income. Changes in facts and circumstances could have a material impact on the Company’s effective tax rate and results of operations. Comprehensive income Comprehensive income is defined as a change in equity of a business enterprise during a period, resulting from transactions from non-owner sources, including unrealized gains and losses on marketable securities prior to the February 1, 2018 adoption of ASU 2016-01. Asset acquisitions The Company routinely acquires rights to be the custodian of HSA portfolios, in which substantially all of the fair value of the gross portfolio assets acquired is concentrated in a group of similar HSA assets and therefore the acquisitions do not constitute a business. Accordingly, the acquisitions are accounted for under the asset acquisition method of accounting in accordance with ASC 805-50, Business Combinations—Related Issues. Under the asset acquisition method of accounting, the Company is required to fair value the assets transferred. The cost of the assets acquired, including transaction costs incurred in conjunction with an asset acquisition, is allocated to the individual assets acquired based on their relative fair values and does not give rise to goodwill. Business combination Consideration paid for the acquisition of a business as defined by ASC 805-10 is allocated to the tangible and intangible assets acquired and liabilities assumed based on their fair values as of the acquisition date. Acquisition-related expenses incurred in conjunction with the acquisition of a business are recognized in earnings in the period in which they are incurred and are included in other expense, net on the consolidated statement of operations. During the years ended January 31, 2020, 2019 and 2018, the Company incurred expenses of $40.8 million, $2.1 million, and $2.2 million, respectively, for acquisition-related activity. Use of estimates The preparation of financial statements in conformity with GAAP requires management to make estimates and assumptions that affect the reported amounts of assets and liabilities and disclosure of contingent assets and liabilities at the date of the financial statements and the reported amounts of revenues and expenses during the reporting period. Management has made estimates for the allowance for doubtful accounts, capitalized software development costs, evaluating goodwill and long-lived assets for impairment, useful lives of property and equipment and intangible assets, accrued compensation, accrued liabilities, grant date fair value of stock options, and income taxes. Actual results could differ from those estimates. Recently adopted accounting pronouncements In February 2016, the Financial Accounting Standards Board ("FASB") issued Accounting Standards Update ("ASU") 2016-02, Leases (codified as "ASC 842"), which requires the recognition of lease assets and lease liabilities by lessees for those leases classified as operating leases under previous guidance. ASC 842 requires that a lessee recognize a liability to make lease payments (the lease liability) and a ROU asset representing its right to use the underlying asset for the lease term on the balance sheet. The Company adopted ASC 842 on February 1, 2019 using the modified retrospective transition method with the adoption date as the date of initial application. Consequently, prior period balances and disclosures have not been restated. The Company has elected the package of practical expedients, which allows the Company not to reassess (1) whether any expired or existing contracts as of the adoption date contain a lease, (2) lease classification for any expired or existing leases as of the adoption date and (3) initial direct costs for any existing leases as of the adoption date. The adoption of ASC 842 on February 1, 2019 resulted in the recognition on the Company's consolidated balance sheet of both operating lease liabilities of $40.6 million and ROU assets of $38.0 million, which equals the lease liabilities net of accrued rent previously recorded on its consolidated balance sheet under previous guidance. The adoption of ASC 842 did not have an impact on the Company's consolidated statement of operations, stockholders’ equity and cash flows for the year ended January 31, 2020. In January 2017, the FASB issued ASU 2017-04, Simplifying the Test for Goodwill Impairment, which removes step two from the goodwill impairment test. As a result, an entity should perform its annual goodwill impairment test by comparing the fair value of a reporting unit with its carrying amount and should recognize an impairment charge for the amount by which the carrying amount exceeds the reporting units' fair value. This ASU should be applied prospectively. We adopted the standard effective February 1, 2019, which had no impact on our consolidated financial statements. In August 2018, the FASB issued ASU 2018-15, Intangibles-Goodwill and Other-Internal-Use Software (Subtopic 350-40): Customer’s Accounting for Implementation Costs Incurred in a Cloud Computing Arrangement That Is a Service Contract . This ASU permits the capitalization of implementation costs incurred in a software hosting arrangement. This ASU is effective for fiscal years beginning after December 15, 2019. The Company elected to early adopt the new standard as of October 31, 2019 using the prospective transition method. The adoption of this standard did not have a mater |