Table:
|  | June 1, 2019 | June 2, 2018 | June 3, 2017 |
| --- | --- | --- | --- |
| Net income (loss) attributable to Cal-Maine Foods, Inc. | $54,229 | $125,932 | $(74,278) |
| Basic weighted-average common shares (including Class A) | 48,467 | 48,353 | 48,362 |
| Effect of dilutive securities: |  |  |  |
| Common stock options and restricted stock | 122 | 115 | — |
| Dilutive potential common shares | 48,589 | 48,468 | 48,362 |
| Net income (loss) per common share: |  |  |  |
| Basic | $1.12 | $2.60 | $(1.54) |
| Diluted | $1.12 | $2.60 | $(1.54) |
Paragraphs:
Net Income (Loss) per Common Share
Basic net income per share is based on the weighted average common and Class A shares outstanding. Diluted net income per share includes any dilutive effects of stock options outstanding and unvested restricted shares.
Basic net income per share was calculated by dividing net income by the weighted-average number of common and Class A shares outstanding during the period. Diluted net income per share was calculated by dividing net income by the weighted-average number of common shares outstanding during the period plus the dilutive effects of stock options and unvested restricted shares. Due to the net loss in the year ended June 3, 2017 restricted shares in the amount of 131,292 were excluded from the calculation of diluted earnings per share because their inclusion would have been
antidilutive. The computations of basic net income per share and diluted net income per share are as follows (in thousands):
Question:
How is the diluted net income per share calculated?
Answer: net income per share was calculated by dividing net income by the weighted-average number of common shares outstanding during the period plus the dilutive effects of stock options and unvested restricted shares