XML 38 R24.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Net Income (Loss) Per Share Attributable to Common Stockholders (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2017
Earnings Per Share [Abstract] |
Computation of numerators and denominators of basic and diluted net income (loss) per share attributable to common stockholders |
|  | Year Ended December 31, |
|  | 2015 |  |  | 2016 |  |  | 2017 |
Net income (loss) per share attributable to common stockholders—basic: |  |  |  |  |  |  |  |  |  |  |  |
Numerator: |  |  |  |  |  |  |  |  |  |  |  |
Net income |  | $ | 15,929 |  |  | $ | 20,482 |  |  | $ | 50,798 |
Less: Income attributable to convertible preferred stock |  |  | (10,958 | ) |  |  | — |  |  |  | — |
Add: Preferred stock modification |  |  | 3,793 |  |  |  | — |  |  |  | — |
Less: Premium on repurchase of convertible preferred stock |  |  | — |  |  |  | (47,209 | ) |  |  | — |
Net income (loss) attributable to common stockholders |  | $ | 8,764 |  |  | $ | (26,727 | ) |  | $ | 50,798 |
Denominator: |  |  |  |  |  |  |  |  |  |  |  |
Weighted-average shares outstanding |  |  | 10,290 |  |  |  | 18,280 |  |  |  | 40,262 |
Net income (loss) per share attributable to common stockholders—basic |  | $ | 0.85 |  |  | $ | (1.46 | ) |  | $ | 1.26 |
Net income (loss) per share attributable to common stockholders—diluted: |  |  |  |  |  |  |  |  |  |  |  |
Numerator: |  |  |  |  |  |  |  |  |  |  |  |
Net income (loss) attributable to common stockholders—basic |  | $ | 8,764 |  |  | $ | (26,727 | ) |  | $ | 50,798 |
Add: Income attributable to dilutive convertible preferred stock |  |  | 1,624 |  |  |  | — |  |  |  | — |
Less: Preferred stock modification |  |  | (3,793 | ) |  |  | — |  |  |  | — |
Net income (loss) attributable to common stockholders—diluted |  | $ | 6,595 |  |  | $ | (26,727 | ) |  | $ | 50,798 |
Denominator: |  |  |  |  |  |  |  |  |  |  |  |
Weighted-average shares outstanding |  |  | 10,290 |  |  |  | 18,280 |  |  |  | 40,262 |
Dilutive convertible preferred stock |  |  | 2,790 |  |  |  | — |  |  |  | — |
Options to purchase common stock |  |  | 3,699 |  |  |  |  |  |  |  | 3,415 |
Employee stock purchase plan shares |  |  | — |  |  |  | — |  |  |  | 268 |
Restricted stock |  |  | — |  |  |  | — |  |  |  | 111 |
Weighted-average shares outstanding—diluted |  |  | 16,779 |  |  |  | 18,280 |  |  |  | 44,056 |
Net income (loss) per share attributable to common stockholders—diluted |  | $ | 0.39 |  |  | $ | (1.46 | ) |  | $ | 1.15 |
Schedule of anti-dilutive shares excluded from the calculation of diluted earnings (loss) per share | The following table presents the anti-dilutive shares excluded from the calculation of diluted net income (loss) per share attributable to common stockholders (in thousands):
|  | Year Ended December 31, |
|  | 2015 |  |  | 2016 |  |  | 2017 |
Anti-dilutive equity awards under stock-based award plans |  |  | 248 |  |  |  | 6,069 |  |  |  | 1,246 |
Common shares issuable upon conversion of convertible preferred stock |  |  | 19,320 |  |  |  | — |  |  |  | — |
Common shares issuable upon conversion of preferred stock warrants |  |  | 547 |  |  |  | — |  |  |  | — |
Total shares excluded from net income (loss) per share attributable to common stockholders—diluted |  |  | 20,115 |  |  |  | 6,069 |  |  |  | 1,246 |

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration