Equity Incentive Plans | Equity Incentive Plans 2008 and 2016 Stock Plan In 2008 and 2016, the Company adopted the 2008 Stock Incentive Plan (as amended, the “2008 Plan”), and the 2016 Equity Incentive Plan (as amended, the “2016 Plan”), primarily for the purpose of granting stock-based awards to employees, directors, and consultants, including stock options and other stock-based awards including restricted stock units (“RSUs”). With the establishment of the 2016 Plan in December 2016, all shares available for grant under the 2008 Plan were transferred to the 2016 Plan. The Company no longer grants any stock-based awards under the 2008 Plan and any shares underlying stock options canceled under the 2008 Plan will be automatically transferred to the 2016 Plan. Stock options granted under the stock option plans may be either incentive stock options (“ISOs”) or nonstatutory stock options (“NSOs”). ISOs may be granted to employees and NSOs may be granted to employees, directors, or consultants. As of January 31, 2017 , the Company made one ISO grant, all other stock options outstanding were granted as NSOs. The exercise prices of the stock option grants must be not less than 100% of the fair value of the common stock on the grant date as determined by the Board of Directors. If, at the date of grant, the optionee owns more than 10% of the total combined voting power of all classes of outstanding stock (a “ 10% stockholder”), the exercise price must be at least 110% of the fair value of the common stock on the date of grant as determined by the Board of Directors. Options granted are exercisable over a maximum term of 10 years from the date of grant or five years from the date of grant for ISOs granted to any 10% stockholder. The Board of Directors or a committee thereof determines the vesting schedule for all equity awards. Stock option awards generally vest over a period of four years with 25% vesting on the one year anniversary of the award and the remainder vesting monthly over the next 36 months of the grantee’s service to the Company. RSU awards generally vest over a period of four years with 25% vesting on the one year anniversary of the award and the remainder vesting quarterly over the next 12 quarters of the grantee’s service to the Company. Stock Options and Restricted Stock Units The following table summarizes stock option and RSU award activity for the 2008 and 2016 Plans (in thousands, except share and per share data and years): Options Outstanding Shares Shares Weighted- Weighted- Aggregate Balance - January 31, 2017 678,260 11,090,597 $ 6.47 8.2 $ 21,717 Authorized 3,000,000 — — Options granted (3,596,525 ) 3,596,525 10.57 Options exercised — (1,242,172 ) 7.54 Early exercised shares repurchased 21,721 — — Options forfeited and expired 669,623 (669,623 ) 7.49 RSUs granted (54,550 ) Balance - October 31, 2017 718,529 12,775,327 7.56 8.0 292,772 Options vested and exercisable - January 31, 2017 4,344,092 6.21 7.3 9,875 Options vested and exercisable - October 31, 2017 5,011,187 $ 6.29 6.8 $ 121,224 During the three months ended October 31, 2017 , the Company granted 29,550 RSUs to employees with a grant date fair value of $0.7 million . During the nine months ended October 31, 2017 , the Company granted 54,550 RSUs with a total grant date fair value of $0.9 million . No RSUs were vested, forfeited or canceled as of October 31, 2017 . No RSUs were granted during the three and nine months ended October 31, 2016. 2016 China Stock Appreciation Rights Plan In April 2016, the Company adopted the 2016 China Stock Appreciation Rights Plan (as amended, the “China SAR Plan”) for its employees in China. For grants made prior to the IPO, the China SAR Plan included a service vesting condition and a performance vesting condition. The service vesting condition is generally over four years with 25% vesting on the one year anniversary of the award and the remainder vesting monthly over the next 36 months of the grantee’s service to the Company. The performance vesting condition is defined as the Company’s common stock being publicly traded (a qualifying liquidity event). The China SAR Plan units are cash settled upon exercise and will be paid as a cash bonus equal to the difference between the strike price of the vested plan units and the fair market value of common stock at the end of each reporting period. For the year ended January 31, 2017 , the Company granted 21,500 units of the China SAR Plan at a weighted average strike price of $6.78 per share. The Company granted no units under this plan for the three and nine months ended October 31, 2017 . All of the units granted during the year ended January 31, 2017 were still outstanding as of October 31, 2017 . During the three and nine months ended October 31, 2017 , upon the vesting of 7,958 units, the total expense and liability related to China SAR for three and nine months ended October 31, 2017 was $0.2 million and was recorded as part of the “Accrued compensation and benefits” on the Company’s unaudited condensed consolidated balance sheet. The Company did not recognize any compensation expense related to the China SAR Plan prior to October 18, 2017 because the Company had determined the performance conditions, with respect to the occurrence of a qualifying liquidity event, were not probable until the successful IPO. 2017 Employee Stock Purchase Plan In October 2017, the Board of Directors adopted, and stockholders approved, the 2017 Employee Stock Purchase Plan (“ESPP”). A total of 995,000 shares of the Company’s Class A common stock have been initially authorized for issuance under the 2017 ESPP. Subject to any plan limitations, the 2017 ESPP allows eligible employees to contribute, normally through payroll deductions, up to 15% of their earnings for the purchase of the Company’s Class A common stock at a discounted price per share. Except for the initial offering period, the ESPP provides for separate six -month offering periods. The initial offering period will run from October 18, 2017 through June 15, 2018. Unless otherwise determined by the Board of Directors, the Company’s Class A common stock will be purchased for the accounts of employees participating in the ESPP at a price per share that is the lesser of (1) 85% of the fair market value of the Company’s Class A common stock on the first trading day of the offering period, which for the initial offering period is the price at which shares of the Company’s Class A common stock were first sold to the public, or (2) 85% of the fair market value of the Company’s Class A common stock on the last trading day of the offering period. During the three and nine months ended October 31, 2017 , no shares of Class A common stock were purchased under the 2017 ESPP. The total expense related to the 2017 ESPP for three and nine months ended October 31, 2017 was $0.1 million . Stock Option Repricing On April 13, 2016, the Company amended all then-current employee and active non-employee stock options with an exercise price greater than $6.50 per share that remained outstanding and unexercised on such date to reprice their respective exercise prices to $6.50 per share, the fair market value of the Company’s common stock as of April 13, 2016, as determined by the Board of Directors. Pursuant to this repricing, options to purchase 6,898,736 shares of common stock were repriced, including options to purchase 3,303,786 shares of common stock held by the Company’s executive officers. The Company determined the total incremental compensation expense related to the repriced awards was $10.7 million , of which $0.6 million was recorded in both the three months ended October 31, 2017 and 2016 , respectively, and $1.8 million and $4.9 million in the nine months ended October 31, 2017 and 2016 , respectively. Early Exercise of Stock Options The Company allows employees and directors to exercise options granted prior to vesting. The unvested shares are subject to lapsing repurchase rights upon termination of employment. For early exercised stock options under the 2008 Plan, the repurchase price is at the original purchase price. For early exercised stock options under the 2016 Plan, the repurchase price is the lower of (i) the then-current fair market value of the common stock on the date of repurchase, and (ii) the original purchase price. The proceeds initially are recorded in other current and noncurrent liabilities from the early exercise of stock options and reclassified to common stock and paid-in capital as the repurchase right lapses. For the three months ended October 31, 2017 and 2016 , the Company issued common stock of 99,618 and 21,506 shares, respectively, for stock options exercised prior to vesting. For the nine months ended October 31, 2017 and 2016 , the Company issued common stock of 358,380 and 202,973 shares, respectively, for stock options exercised prior to vesting. For the three months ended October 31, 2017 and 2016 , we repurchased 11,362 and 3,437 shares, respectively, of common stock related to unvested stock options at the original exercise price due to the termination of employees. For the nine months ended October 31, 2017 and 2016 , we repurchased 21,721 and 3,516 shares, respectively, of common stock related to unvested stock options at the original exercise price due to the termination of employees. As of October 31, 2017 and January 31, 2017 , 311,710 and 118,059 shares held by employees and directors were subject to potential repurchase at an aggregate price of $2.4 million and $0.8 million , respectively. Determination of Fair Value The determination of the fair value of stock options on the date of grant using an option-pricing model is affected by the fair value of the Company’s common stock, as well as assumptions regarding a number of complex and subjective variables. The Company uses the Black-Scholes option-pricing model to calculate the fair value of stock options, , which requires the use of assumptions including actual and projected employee stock option exercise behaviors, expected price volatility of the Company’s common stock, the risk-free interest rate and expected dividends. Each of these inputs is subjective and generally requires significant judgment to determine. Fair Value of Common Stock. Prior to the IPO, the fair value of common stock underlying the stock options had historically been determined by the Board of Directors, with input from the Company’s management. The Board of Directors previously determined the fair value of the common stock at the time of grant of the options by considering a number of objective and subjective factors, including valuations of comparable companies, sales of redeemable convertible preferred stock, sales of common stock to unrelated third parties, operating and financial performance, the lack of liquidity of the Company’s capital stock, and general and industry-specific economic outlook. Subsequent to the IPO, the fair value of the underlying common stock is determined by the closing price, on the date of grant, of the Company’s Class A common stock, which is traded publicly on the NASDAQ Stock Market. Expected Term. The expected term represents the period that stock-based awards are expected to be outstanding. For option grants that are considered to be “plain vanilla,” the Company determines the expected term using the simplified method. The simplified method deems the term to be the average of the time-to-vesting and the contractual life of the options. For other option grants, the Company estimates the expected term using historical data on employee exercises and post-vesting employment termination behavior taking into account the contractual life of the award. Expected Volatility. Since the Company has limited trading history of its common stock, the expected volatility is derived from the average historical stock volatilities of several unrelated public companies within the Company’s industry that the Company considers to be comparable to its own business over a period equivalent to the expected term of the stock option grants. Risk-Free Interest Rate. The risk-free interest rate is based on the U.S. Treasury yield curve in effect at the time of grant for zero-coupon U.S. Treasury notes with maturities approximately equal to the option’s expected term. Dividend Rate. The expected dividend is assumed to be zero as the Company has never paid dividends and has no current plans to do so. The fair value of stock options granted was estimated on the date of grant using the Black-Scholes option pricing model with the following assumptions: Three Months Ended October 31, Nine Months Ended October 31, 2017 2016 2017 2016 Expected term (in years) 5.97 - 6.11 5.91 - 6.08 5.85 - 6.20 5.77 - 6.99 Expected volatility 44.6% - 45.7% 41.4% - 41.5% 41.9% - 45.7% 41.4% - 42.5% Risk-free interest rate 1.8% - 2.1% 1.4 % 1.8% - 2.1% 1.2% - 1.5% Dividend yield 0% 0% 0% 0% The fair value of the purchase rights granted under the 2017 ESPP was estimated on the first day of the offering period using the Black-Scholes option-pricing model with the following assumptions: Three Months Ended October 31, 2017 Expected term (in years) 0.67 - 0.7 Expected volatility 23% - 24% Risk-free interest rate 1.2% Dividend yield 0% Stock-Based Compensation Expense Total stock-based compensation expense recognized in the Company’s unaudited condensed consolidated statements of operations is as follows (in thousands): Three Months Ended October 31, Nine Months Ended October 31, 2017 2016 2017 2016 Cost of revenue—subscription $183 $131 $503 $425 Cost of revenue—services 123 70 292 397 Sales and marketing 1,704 1,095 4,400 4,346 Research and development 1,505 1,206 4,072 4,518 General and administrative 2,184 1,732 5,799 6,831 Total stock-based compensation expense $ 5,699 $ 4,234 $ 15,066 $ 16,517 |