v3.20.2

Net Income (Loss) Per Share | 6 Months Ended
--- | ---
Jun. 30, 2020
Earnings Per Share [Abstract] |
Net Income (Loss) Per Share | Net Income (Loss) Per Share Basic net income (loss) per share attributable to common stockholders is computed by dividing net income (loss) attributable to common stockholders by the weighted-average number of shares of common stock outstanding during the period. Diluted net income (loss) per share is computed by dividing net income (loss) attributable to common stockholders by the weighted-average number of shares of common stock outstanding during the period, adjusted for the effects of dilutive shares of common stock, which are comprised of outstanding stock options, RSUs, ESPP obligations, the 2022 Notes, the 2022 Warrants and the 2018 Warrants. Stock awards with performance conditions are included in dilutive shares to the extent the performance condition is met. The dilutive potential shares of common stock are computed using the treasury stock method or the as-if converted method, as applicable. The effects of outstanding stock options, RSUs, ESPP obligations, Notes and Warrants are excluded from the computation of diluted net income (loss) per share in periods in which the effect would be antidilutive. The following tables present the calculation of basic and diluted net income (loss) per share attributable to common stockholders (in thousands, except per share data):
| Three Months Ended June 30, |  |  |  | Six Months Ended June 30, |  |
| 2020 |  | 2019 |  | 2020 |  | 2019
Numerator: |  |  |  |  |  |  |
Net income (loss) | $ | 40,766 |  |  | $ | (11,079) |  |  | $ | 88,997 |  |  | $ | (12,624) |
Denominator: |  |  |  |  |  |  |
Weighted-average shares outstanding - basic | 191,319 |  |  | 186,678 |  |  | 190,731 |  |  | 184,419 |
Weighted-average effect of potentially dilutive securities: |  |  |  |  |  |  |
Common stock options | 538 |  |  | — |  |  | 647 |  |  | — |
RSUs | 3,613 |  |  | — |  |  | 3,791 |  |  | — |
ESPP obligations | 11 |  |  | — |  |  | — |  |  | — |
2022 Convertible senior notes | 3,500 |  |  | — |  |  | 3,370 |  |  | — |
2020 Convertible senior notes settlements | 10 |  |  | — |  |  | 44 |  |  | — |
2022 Warrants | 2,462 |  |  | — |  |  | 2,260 |  |  | — |
Weighted-average shares outstanding - diluted | 201,453 |  |  | 186,678 |  |  | 200,843 |  |  | 184,419 |
Net income (loss) per share - basic | $ | 0.21 |  |  | $ | (0.06) |  |  | $ | 0.47 |  |  | $ | (0.07) |
Net income (loss) per share - diluted | $ | 0.20 |  |  | $ | (0.06) |  |  | $ | 0.44 |  |  | $ | (0.07) |
Potentially dilutive securities that are not included in the calculation of diluted net income (loss) per share because doing so would be antidilutive are as follows (in thousands):
| Three Months Ended June 30, |  |  |  | Six Months Ended June 30, |  |
| 2020 |  | 2019 |  | 2020 |  | 2019
Common stock options | 161 |  |  | 1,370 |  |  | 161 |  |  | 1,370 |
RSUs | 195 |  |  | 10,917 |  |  | 2,537 |  |  | 10,917 |
ESPP obligations | — |  |  | 212 |  |  | 178 |  |  | 212 |
2022 Notes | — |  |  | 5,807 |  |  | — |  |  | 5,807 |
2022 Warrants | — |  |  | 5,807 |  |  | — |  |  | 5,807 |
Total potentially dilutive securities | 356 |  |  | 24,113 |  |  | 2,876 |  |  | 24,113 |

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/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109243012&loc=SL65017193-207537 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -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 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -URI http://asc.fasb.org/topic&trid=2144383 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3630-109257 + Details
Name: | us-gaap_EarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration