XML 24 R10.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Net Income (Loss) Per Share Attributable to Common Stockholders | 12 Months Ended
--- | ---
Dec. 31, 2017
Earnings Per Share [Abstract] |
Net Income (Loss) Per Share Attributable to Common Stockholders | Note 3—Net Income (Loss) Per Share Attributable to Common Stockholders The Company has two classes of common stock, Class A and Class B. Basic and diluted net income (loss) per share attributable to common stockholders for Class A and Class B common stock were the same because they were entitled to the same liquidation and dividend rights. The computations of the numerators and denominators of the basic and diluted net income (loss) per share attributable to common stockholders are as follows (in thousands, except per share amounts):
|  | 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 |
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 The entire disclosure for earnings per share. + References Reference 1: http://www.xbrl.org/2003/role/presentationRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -URI http://asc.fasb.org/topic&trid=2144383 + Details
Name: | us-gaap_EarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration