Stock-based compensation | Stock-based compensation The following table shows a summary of stock-based compensation in the Company's condensed consolidated statements of operations and comprehensive income (loss) during the periods presented: Three months ended October 31, Nine months ended October 31, (in thousands) 2019 2018 2019 2018 Cost of revenue $ 1,415 $ 788 $ 3,285 $ 2,008 Sales and marketing 1,304 990 3,469 2,586 Technology and development 2,171 1,386 5,600 3,677 General and administrative 3,332 2,570 9,486 7,190 Merger integration 1,220 — 1,220 — Other expense, net 13,714 — 13,714 — Total stock-based compensation expense $ 23,156 $ 5,734 $ 36,774 $ 15,461 The following table shows stock-based compensation by award type: Three months ended October 31, Nine months ended October 31, (in thousands) 2019 2018 2019 2018 Stock options $ 1,631 $ 1,917 $ 5,140 $ 5,664 Performance stock options — 178 — 503 Restricted stock units 14,099 1,956 20,718 5,543 Performance restricted stock units 1,422 793 3,467 1,843 Restricted stock awards 164 172 491 399 Performance restricted stock awards 260 718 1,378 1,509 Total non-cash stock-based compensation expense 17,576 5,734 31,194 15,461 Acquisition awards exchanged for cash 5,580 — 5,580 — Total stock-based compensation expense $ 23,156 $ 5,734 $ 36,774 $ 15,461 Stock award plans Incentive Plan. The Company grants stock options, restricted stock units ("RSUs"), and restricted stock awards ("RSAs") under the HealthEquity, Inc. 2014 Equity Incentive Plan (as amended and restated, the "Incentive Plan"), which provided for the issuance of stock awards to the directors and team members of the Company to purchase up to an aggregate of 2.6 million shares of common stock. As described below, in connection with the Acquisition, the shares of common stock available for issuance under the Incentive Plan were increased by 5.3 million shares. In addition, under the Incentive Plan, the number of shares of common stock reserved for issuance under the Incentive Plan automatically increases on February 1 of each year, beginning as of February 1, 2015 and continuing through and including February 1, 2024, by 3% of the total number of shares of the Company’s capital stock outstanding on January 31 of the preceding fiscal year, or a lesser number of shares determined by the board of directors. WageWorks Incentive Plan. At the closing of the Acquisition, and in accordance with the Merger Agreement, certain RSUs with respect to WageWorks common stock, granted under WageWorks, Inc. 2010 Equity Incentive Plan (the "WageWorks Incentive Plan"), were replaced by the Company and converted into RSUs with respect to 523,318 shares of common stock of the Company. In connection with the Acquisition, an additional 5,255,027 shares of the Company, representing the remaining number of shares of common stock of WageWorks that were available for issuance under the WageWorks Incentive Plan immediately prior to the Acquisition, became available for issuance under the Incentive Plan. The additional shares may be utilized for equity-based awards to be granted under the Incentive Plan, provided that (i) the period during which such shares are available under the Incentive Plan may not be extended beyond the period during which they would have been available under the WageWorks Incentive Plan, absent the Acquisition, and (ii) such equity-based awards may not be granted to individuals who were employees, directors or consultants of HealthEquity or its affiliates at the time the Acquisition was consummated. Stock options Under the terms of the Incentive Plan, the Company has the ability to grant incentive and nonqualified stock options. Incentive stock options may be granted only to Company team members. Nonqualified stock options may be granted to Company executive officers, other team members, directors and consultants. Such options are to be exercisable at prices, as determined by the board of directors, which must be equal to no less than the fair value of the Company's common stock at the date of the grant. Stock options granted under the Incentive Plan generally expire 10 years from the date of issuance, or are forfeited 90 days after termination of employment. Shares of common stock underlying stock options that are forfeited or that expire are returned to the Incentive Plan. Valuation assumptions. The Company has adopted the provisions of Topic 718, which requires the measurement and recognition of compensation for all stock-based awards made to team members and directors, based on estimated fair values. Under Topic 718, the Company uses the Black-Scholes option pricing model as the method of valuation for stock options. The determination of the fair value of stock-based awards on the date of grant is affected by the fair value of the stock as well as assumptions regarding a number of complex and subjective variables. The variables include, but are not limited to, 1) the expected life of the option, 2) the expected volatility of the fair value of the Company's common stock over the term of the award estimated by averaging the Company's historical volatility in addition to published volatilities of a relative peer group, 3) risk-free interest rate, and 4) expected dividends. The key input assumptions that were utilized in the valuation of the stock options granted during the periods presented: Three months ended October 31, Nine months ended October 31, 2019 2018 2019 2018 Expected dividend yield * — % — % — % Expected stock price volatility * 37.09 % 35.98% - 36.53% 37.09% - 37.84% Risk-free interest rate * 2.79 % 2.21% - 2.43% 2.52% - 2.79% Expected life of options * 6.25 years 4.95 - 5.09 years 5.17 - 6.25 years * No stock options were granted during the three months ended October 31, 2019. The Company historically used the "simplified" method to estimate the expected life of an option as determined under Staff Accounting Bulletin No. 110 due to limited option exercise history as a public company. Commencing February 1, 2019, the Company began estimating the expected life of an option using its own historical option exercise and termination data. Expected volatility is determined using weighted average volatility of the Company's historical common stock price in addition to published volatilities of publicly traded peer companies. The risk-free interest rate is determined by using published zero coupon rates on treasury notes for each grant date given the expected term on the options. The dividend yield of zero is based on the fact that the Company expects to invest cash in operations. A summary of stock option activity is as follows: Outstanding stock options (in thousands, except for exercise prices and term) Number of Range of Weighted- Weighted- Aggregate Outstanding as of January 31, 2019 2,444 $0.10 - 82.39 $ 27.37 6.74 $ 85,971 Granted 108 $63.64 - 73.61 $ 73.27 Exercised (314 ) $0.10 - 44.53 $ 23.42 Forfeited (36 ) $24.36 - 44.53 $ 30.15 Outstanding as of October 31, 2019 2,202 $0.10 - 82.39 $ 30.14 6.13 $ 61,562 Vested and expected to vest as of October 31, 2019 2,202 $ 30.14 6.13 $ 61,562 Exercisable as of October 31, 2019 1,501 $ 22.91 5.50 $ 51,131 The aggregate intrinsic value in the table above represents the difference between the estimated fair value of common stock and the exercise price of outstanding, in-the-money stock options. As of October 31, 2019 , the weighted-average vesting period of non-vested awards expected to vest is approximately 1.5 years ; the amount of compensation expense the Company expects to recognize for stock options vesting in future periods is approximately $8.8 million . Restricted stock units and restricted stock awards The Company grants RSUs and RSAs to certain team members, officers, and directors under the Incentive Plan. RSUs and RSAs vest upon service-based criteria and performance-based criteria. Generally, service-based RSUs and RSAs vest over a four-year period in equal annual installments commencing upon the first anniversary of the grant date. RSUs and RSAs are valued 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. Acquisition of WageWorks. As described above, at the closing of the Acquisition, and in accordance with the Merger Agreement, 523,318 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. These replaced awards are included in the granted amounts in the summary of RSU and RSA activity below. The awards replaced by the Company in the Acquisition were measured at the Acquisition date based on the estimated fair value of $29.7 million . A portion of that fair value, $3.8 million , which represented the pre-Acquisition service provided by team members to WageWorks, was included in the total consideration paid as part of the Acquisition. As of the closing of the Acquisition, the remaining portion of the fair value of those awards was $25.9 million , representing post-Acquisition share-based compensation expense, $8.1 million of which was recognized during the three months ended October 31, 2019 as acquisition-related costs, and the remainder of which will be recognized in the ordinary course as these team members provide service over the remaining vesting periods. Additionally, at the closing of the Acquisition, and in accordance with the Merger Agreement, the Company exchanged for cash certain WageWorks equity awards measured at the Acquisition date based on the estimated fair value of $23.6 million . A portion of that fair value, $18.1 million , which represented the pre-Acquisition service provided by team members to WageWorks, was included in the total consideration paid as part of the Acquisition. As of the closing of the Acquisition, the remaining portion of the fair value of the awards exchanged for cash was $5.6 million , representing post-Acquisition share-based compensation expense that was recognized during the three months ended October 31, 2019 . Performance restricted stock units and awards. In March 2017, the Company awarded 146,964 performance-based RSUs ("PRSUs"). Vesting of the PRSUs is dependent upon the achievement of certain financial criteria and cliff vest on January 31, 2020. The Company records stock-based compensation related to PRSUs when it is considered probable that the performance conditions will be met. Issuance of the underlying shares occurs at vesting. The Company believes it is probable that the PRSUs will vest at least in part. The vesting of the PRSUs will ultimately range from 0% to 150% of the number of shares underlying the PRSU grant based on the level of achievement of the performance goals. As a result of the Acquisition, we expect the Compensation Committee of the Board of Directors to consider revisions to certain existing PRSU performance goals. In March 2018, the Company awarded 227,760 performance-based RSAs ("PRSAs"). Vesting of the PRSAs is dependent upon the achievement of certain financial criteria and cliff vest on January 31, 2021. The Company records stock-based compensation related to PRSAs when it is considered probable that the performance conditions will be met. Issuance of the underlying shares occurred at the grant date. The Company believes it is probable that the PRSAs will vest at least in part. The vesting of the PRSAs will ultimately range from 0% to 200% based on the level of achievement of the performance goals. The PRSAs were issued at the 200% level of achievement. As the underlying shares were issued at grant date, they are subject to clawback based on actual Company performance. As a result of the Acquisition, we expect the Compensation Committee of the Board of Directors to consider revisions to certain existing PRSU performance goals. In March 2019, the Company awarded 129,963 PRSUs. Vesting of the PRSUs is dependent upon the achievement of certain financial criteria and cliff vest on January 31, 2022. The Company records stock-based compensation related to PRSUs when it is considered probable that the performance conditions will be met. Issuance of the underlying shares occurs at vesting. The Company believes it is probable that the PRSUs will vest at least in part. The vesting of the PRSUs will ultimately range from 0% to 200% of the number of shares underlying the PRSU grant based on the level of achievement of the performance goals. As a result of the Acquisition, we expect the Compensation Committee of the Board of Directors to consider revisions to certain existing PRSU performance goals. A summary of the RSU and RSA activity is as follows: RSUs and PRSUs RSAs and PRSAs (in thousands, except weighted-average grant date fair value) Shares Weighted-average grant date fair value Shares Weighted-average grant date fair value Outstanding as of January 31, 2019 647 $ 55.18 256 $ 61.93 Granted 1,124 64.61 — — Released (320 ) 58.01 (11 ) 62.75 Forfeited (83 ) 56.02 (10 ) 61.72 Outstanding as of October 31, 2019 1,368 $ 62.22 235 $ 61.91 For the nine months ended October 31, 2019 , the aggregate intrinsic value of RSUs and RSAs released was $19.9 million and $0.8 million , respectively. For the nine months ended October 31, 2018 , the aggregate intrinsic value of RSUs released was $5.5 million . Total unrecorded stock-based compensation expense as of October 31, 2019 associated with RSUs and PRSUs was $67.1 million , which is expected to be recognized over a weighted-average period of 2.6 years . Total unrecorded stock-based compensation expense as of October 31, 2019 associated with RSAs and PRSAs was $4.3 million , which is expected to be recognized over a weighted-average period of 1.6 years . |