Table:
|  |  | Years Ended December 31, |  |
| --- | --- | --- | --- |
|  | 2019 | 2018 | 2017 |
|  |  | (in thousands, except per share amounts) |  |
| Numerator: |  |  |  |
| Net loss | $(19,898) | $(26,199) | $(9,187) |
| Denominator: |  |  |  |
| Weighted average common shares outstanding—basic | 71,005 | 68,490 | 66,252 |
| Dilutive common stock equivalents | — | — | — |
| Weighted average common shares outstanding—diluted | 71,005 | 68,490 | 66,252 |
| Net loss per share: |  |  |  |
| Basic | $(0.28) | $(0.38) | $(0.14) |
| Diluted | $(0.28) | $(0.38) | $(0.14) |
Paragraphs:
2. Net Income (Loss) Per Share
Basic earnings per share, or EPS, is calculated by dividing net income (loss) by the weighted-average number of common shares outstanding for the period, without consideration for common stock equivalents. Diluted EPS is computed by dividing net income by the weighted-average number of common shares outstanding for the period and the weighted-average number of dilutive common stock equivalents outstanding for the period determined using the treasury-stock method.
For purposes of this calculation, common stock options, restricted stock units and restricted stock awards are considered to be common stock equivalents and are only included in the calculation of diluted EPS when their effect is dilutive. In periods in which the Company has a net loss, dilutive common stock equivalents are excluded from the calculation of diluted EPS.
The table below presents the computation of basic and diluted earnings per share:
For the years ended December 31, 2019, 2018 and 2017, the Company incurred net losses and accordingly excluded common stock equivalents for outstanding stockbased awards, which represented all potentially dilutive securities, of 2.5 million, 3.7 million, and 4.5 million, respectively, from the calculation of diluted net loss per share due to their anti-dilutive nature.
Question:
How is Basic earnings per share, or EPS calculated?