v3.20.2

Net Income (Loss) Per Share (Tables) | 6 Months Ended
--- | ---
Jun. 30, 2020
Earnings Per Share [Abstract] |
Schedule of Basic and Diluted Net Loss Per Share | 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) |
Schedule of Potentially Dilutive Securities | 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 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://fasb.org/us-gaap/role/ref/legacyRef -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/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -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