| Schedule of Computation of Basic and Diluted Net Income (Loss) Per Share |
The following table sets forth the computation of basic and diluted net income per share attributable to common stockholders for the periods presented: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Year Ended January 31, | | | | | | 2021 | | 2020 | | 2019 | | | | | | | | | | Class A | | Class B | | Class A | | Class B | | Class A | | Class B | | | | | | | | | | | | | | | | | | | | | | Numerator: | | | | | | | | (in thousands, except share and per share data) | | Net income | | | | | | | | | $ | 432,968 | | | $ | 239,348 | | | $ | 5,450 | | | $ | 19,855 | | | $ | — | | | $ | 7,584 | | | | | | | | | | | | | | | | | | | | | | | Less: undistributed earnings attributable to participating securities | | | | | | | | | — | | | (789) | | | — | | | (3,555) | | | — | | | (7,584) | | | Net income attributable to common stockholders, basic | | | | | | | | | $ | 432,968 | | | $ | 238,559 | | | $ | 5,450 | | | $ | 16,300 | | | $ | — | | | $ | 0 | | | Reallocation of net income attributable to common stockholders | | | | | | | | | (14,321) | | | 14,321 | | | (439) | | | 439 | | | — | | | 0 | | | Net income attributable to common stockholders, diluted | | | | | | | | | $ | 418,647 | | | $ | 252,880 | | | $ | 5,011 | | | $ | 16,739 | | | $ | — | | | $ | 0 | | | Denominator: | | | | | | | | | | | | | | | | | | | | Weighted-average shares used in computing net income per share attributable to common stockholders, basic | | | | | | | | | 183,015,245 | | | 100,838,409 | | | 58,541,269 | | | 175,100,067 | | | — | | | 84,483,094 | | Weighted-average shares used in computing net income per share attributable to common stockholders, diluted | | | | | | | | | 185,860,412 | | | 112,267,257 | | | 58,583,874 | | | 195,714,140 | | | — | | | 116,005,681 | | Net income per share attributable to common stockholders, basic | | | | | | | | | $ | 2.37 | | | $ | 2.37 | | | $ | 0.09 | | | $ | 0.09 | | | $ | — | | | $ | 0.00 | | Net income per share attributable to common stockholders, diluted | | | | | | | | | $ | 2.25 | | | $ | 2.25 | | | $ | 0.09 | | | $ | 0.09 | | | $ | — | | | $ | 0.00 | |
|
| Summary of Potential Shares of Common Stock Excluded from Computation of Diluted Net Income Per Share Attributable to Common Stockholders |
The potential shares of common stock that were excluded from the computation of diluted net income per share attributable to common stockholders for the periods presented because including them would have been anti-dilutive are as follows: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Year Ended January 31, | | | | | | 2021 | | 2020 | | 2019 | | | | | | | | | | Class A | | Class B | | Class A | | Class B | | Class A | | Class B | | | | | | | | | | | | | | | | | | | | | | Outstanding stock options | | | | | | | | | 51,444 | | | — | | | 141,782 | | | — | | | — | | | 3,541,878 | | | Unvested RSUs | | | | | | | | | 98,941 | | | — | | | 606,971 | | | — | | | — | | | — | | Purchase rights committed under the ESPP | | | | | | | | | 14,951 | | | — | | | 1,180,664 | | | — | | | — | | | — | | | | | | | | | | | | | | | | | | | | | | | Total | | | | | | | | | 165,336 | | | — | | | 1,929,417 | | | — | | | — | | | 3,541,878 | |
|