The calculation of basic and diluted earnings (loss) per share for the three and six months ended June 30, 2025 and 2024 are as follows (in thousands, except per share data): | | | | | | | | | | | | | | | For the Three Months Ended June 30, | | For the Six Months Ended June 30, | | | 2025 | | 2024 | | 2025 | | 2024 | Basic earnings (loss) per share | | | | | | | | | | | | | Net income (loss) | | $ | (20,033) | | $ | 1,217 | | $ | (30,429) | | $ | 1,227 | Basic weighted average shares outstanding | | | 30,258 | | | 31,762 | | | 30,927 | | | 32,053 | Basic earnings (loss) per share | | $ | (0.66) | | $ | 0.04 | | $ | (0.98) | | $ | 0.04 | | | | | | | | | | | | | | Diluted earnings (loss) per share | | | | | | | | | | | | | Net income (loss) | | $ | (20,033) | | $ | 1,217 | | $ | (30,429) | | $ | 1,227 | Weighted average shares outstanding | | | 30,258 | | | 31,762 | | | 30,927 | | | 32,053 | Effect of dilutive securities - options and restricted stock | | | — | | | 442 | | | — | | | 463 | Diluted weighted-average shares outstanding | | | 30,258 | | | 32,204 | | | 30,927 | | | 32,516 | Diluted earnings per share (loss) | | $ | (0.66) | | $ | 0.04 | | $ | (0.98) | | $ | 0.04 |
|