| Schedule of computation of net (loss) income per share |
The computation of net (loss) income per share is as follows (in thousands, except per share amounts): | | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | 2022 | | 2021 | | 2020 | | | Basic net (loss) income per share: | | | | | | | | Numerator | | | | | | | | Net (loss) income | $ | (2,624,949) | | | $ | 3,624,120 | | | $ | 322,317 | | | | Less: Income allocated to participating securities | — | | | (527,162) | | | (214,061) | | | | | | | | | | | Net (loss) income attributable to common stockholders, basic | $ | (2,624,949) | | | $ | 3,096,958 | | | $ | 108,256 | | | | | | | | | | | Denominator | | | | | | | | Weighted-average shares of common stock used to compute net (loss) income per share attributable to common stockholders, basic | 222,314 | | | 177,319 | | | 68,671 | | | | Net (loss) income per share attributable to common stockholders, basic | $ | (11.81) | | | $ | 17.47 | | | $ | 1.58 | | | | | | | | | | | Diluted net (loss) income per share: | | | | | | | | Numerator | | | | | | | | Net (loss) income | $ | (2,624,949) | | | $ | 3,624,120 | | | $ | 322,317 | | | | Less: Income allocated to participating securities | — | | | (439,229) | | | (194,846) | | | | Add: Interest on convertible notes, net of tax | — | | | 6,208 | | | — | | | | Less: Fair value gain on contingent consideration arrangement, net of tax | (6,230) | | | (695) | | | — | | | | Net (loss) income attributable to common stockholders, diluted | $ | (2,631,179) | | | $ | 3,190,404 | | | $ | 127,471 | | | | | | | | | | | Denominator | | | | | | | | Weighted-average shares of common stock used to compute net (loss) income per share attributable to common stockholders, basic | 222,314 | | | 177,319 | | | 68,671 | | | | Weighted-average effect of potentially dilutive securities: | | | | | | | | Stock options | — | | | 36,396 | | | 22,146 | | | | RSUs | — | | | 3,773 | | | — | | | | Restricted common stock | — | | | 9 | | | — | | | | Warrants | — | | | 72 | | | 392 | | | | Convertible notes | — | | | 2,388 | | | — | | | | Contingent consideration | 24 | | | 8 | | | — | | | | Weighted-average shares of common stock used to compute net (loss) income per share attributable to common stockholders, diluted | 222,338 | | | 219,965 | | | 91,209 | | | | | | | | | | | Net (loss) income per share attributable to common stockholders, diluted | $ | (11.83) | | | $ | 14.50 | | | $ | 1.40 | | |
|
| Schedule of potentially dilutive shares |
The following potentially dilutive shares were not included in the calculation of diluted shares outstanding as the effect would have been anti-dilutive (in thousands): | | | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | 2022 | | 2021 | | 2020 | | | | Stock options | 31,795 | | | 6,134 | | | 12,831 | | | | | RSUs | 5,329 | | | 151 | | | 3,766 | | | | | Convertible notes | 3,880 | | | — | | | — | | | | | Restricted common stock | 1,602 | | | 5 | | | — | | | | | ESPP | 1,945 | | | 295 | | | — | | | | | | | | | | | | | Total | 44,551 | | | 6,585 | | | 16,597 | | | |
|