Earnings and Loss per Common Share
The calculation of basic and diluted earnings and loss per share ("EPS") was as follows:
 Year Ended December 31,
 202420232022
(In thousands, except per share data)
Basic earnings and loss per Class A common share
Numerator:
Net (loss) income$(26,702)$6,722 $64,212 
Amount attributable to unvested Walmart restricted shares — (178)
Net (loss) income allocated to Class A common stockholders$(26,702)$6,722 $64,034 
Denominator:
Weighted-average Class A shares issued and outstanding53,527 52,251 53,351 
Basic (loss) earnings per Class A common share$(0.50)$0.13 $1.20 
Diluted earnings and loss per Class A common share
Numerator:
Net (loss) income allocated to Class A common stockholders$(26,702)$6,722 $64,034 
Re-allocated earnings — 
Diluted net (loss) income allocated to Class A common stockholders$(26,702)$6,722 $64,036 
Denominator:
Weighted-average Class A shares issued and outstanding53,527 52,251 53,351 
Dilutive potential common shares:
Stock options — 29 
Service based restricted stock units 138 160 
Performance-based restricted stock units 52 295 
Employee stock purchase plan 69 36 
Diluted weighted-average Class A shares issued and outstanding53,527 52,510 53,871 
Diluted (loss) earnings per Class A common share$(0.50)$0.13 $1.19 
The restricted shares issued to Walmart contain non-forfeitable rights to dividends and are considered participating securities for purposes of computing EPS pursuant to the two-class method. The computation above excludes income attributable to the unvested restricted shares from the numerator and excludes the dilutive impact of those underlying shares from the denominator.
For the periods presented, we excluded certain restricted stock units and stock options outstanding, which could potentially dilute basic EPS in the future, from the computation of diluted EPS as their effect was anti-dilutive. Additionally, we have excluded any performance-based restricted stock units where the performance contingency has not been met as of the end of the period, or whereby the result of including such awards was anti-dilutive.
The following table shows the weighted-average number of anti-dilutive shares excluded from the diluted EPS calculation:
 Year Ended December 31,
 202420232022
(In thousands)
Class A common stock
Options to purchase Class A common stock790 1,057 152 
Service based restricted stock units958 1,573 1,161 
Performance-based restricted stock units40 896 586 
Unvested Walmart restricted shares — 148 
Total 1,788 3,526 2,047 

About Earnings Per Share Disclosures

The earnings per share disclosure breaks down the calculation from net income to both basic and diluted EPS, revealing the full impact of a company's capital structure on per-share economics. The reconciliation between basic and diluted share counts exposes how many stock options, RSUs, convertible securities, and warrants are potentially dilutive to existing shareholders.

Key signals: a widening gap between basic and diluted shares indicates growing dilution from equity compensation or convertible instruments. Anti-dilutive securities excluded from the diluted calculation deserve attention — they represent latent dilution that will materialize if the stock price rises. Watch for the effect of share buybacks on per-share metrics: EPS growth driven primarily by repurchases rather than income growth signals weakening fundamentals. Compare year-over-year changes in the diluted share count against equity compensation expense to assess whether management is effectively managing dilution.