Net Income (Loss) per Share |
Net Income (Loss) per Share
The following table sets forth the calculation of basic and diluted net income (loss) per share attributable to common stockholders during the periods presented (in thousands, except per share amounts): | | | | | | | | | | | | | | | | | | Three Months Ended September 30, | | Nine Months Ended September 30, | | 2019 | | 2018 | | 2019 | | 2018 | Numerator: | | | | | | | | Net income (loss) | $ | (778 | ) | | $ | 4,009 |
| | $ | (2,168 | ) | | $ | 11,578 |
| Participating securities: | | | | | | | | Income allocated to participating securities | — |
| | — |
| | — |
| | (4,415 | ) | Net income (loss) attributable to common stockholders | (778 | ) | | 4,009 |
| | (2,168 | ) | | 7,163 |
| | | | | | | | | Denominator: | | | | | | | | Weighted-average shares, basic | 37,262 |
| | 35,007 |
| | 37,005 |
| | 20,946 |
| Dilutive effect of warrants | — |
| | 162 |
| | — |
| | 150 |
| Dilutive effect of restricted stock units and awards | — |
| | 15 |
| | — |
| | 7 |
| Dilutive effect of common stock options | — |
| | 5,148 |
| | — |
| | 5,035 |
| Weighted-average common shares outstanding, diluted | 37,262 |
| | 40,332 |
| | 37,005 |
| | 26,138 |
| Net income (loss) per share attributable to common stockholders: | | | | | | | | Basic | $ | (0.02 | ) | | $ | 0.11 |
| | $ | (0.06 | ) | | $ | 0.34 |
| Diluted | $ | (0.02 | ) | | $ | 0.10 |
| | $ | (0.06 | ) | | $ | 0.27 |
|
The following potentially dilutive shares of restricted stock awards and units, employee stock purchase plan, and stock options were not included in the calculation of diluted shares above as the effect would have been anti‑dilutive (in thousands): | | | | | | | | | | | | | | Three Months Ended September 30, | | Nine Months Ended September 30, | | 2019 | | 2018 | | 2019 | | 2018 | Restricted stock units and awards | 1,912 |
| | 541 |
| | 1,912 |
| | 541 |
| Employee stock purchase plan | 33 |
| | — |
| | 77 |
| | — |
| Common stock options | 4,529 |
| | — |
| | 4,529 |
| | — |
| Total | 6,474 |
| | 541 |
| | 6,518 |
| | 541 |
|
|