The following table sets forth the computation of the basic and diluted earnings per share for the three and nine months ended September 30, 2016 and 2017 (in thousands, except per share data): | | | | | | | | | | | | | | | | | | For the Three Months Ended September 30, | | For the Nine Months Ended September 30, | | 2016 | | 2017 | | 2016 | | 2017 | Numerator for basic and diluted earnings per share: | | | | | | | | Net income | $ | 5,683 |
| | $ | 3,038 |
| | $ | 15,454 |
| | $ | 14,532 |
| Less: Earnings allocated to unvested restricted stock | (25 | ) | | (10 | ) | | (76 | ) | | (52 | ) | Income attributable to common stockholders | $ | 5,658 |
| | $ | 3,028 |
| | $ | 15,378 |
| | $ | 14,480 |
| | | | | | | | | Denominator: | | | | | | | | Denominator for basic earnings per common share - weighted average shares outstanding | 16,529 |
| | 16,476 |
| | 16,502 |
| | 16,575 |
| Effect of dilutive securities: | | | | | | | | Stock options | 273 |
| | 335 |
| | 260 |
| | 332 |
| Convertible subordinated notes | 299 |
| | 787 |
| | 200 |
| | 980 |
| Denominator for diluted earnings per common share - weighted average shares outstanding | 17,101 |
| | 17,598 |
| | 16,962 |
| | 17,887 |
| | | | | | | | | Basic earnings per common share: | $ | 0.34 |
| | $ | 0.18 |
| | $ | 0.93 |
| | $ | 0.87 |
| Diluted earnings per common share: | $ | 0.33 |
| | $ | 0.17 |
| | $ | 0.91 |
| | $ | 0.81 |
|
|