Computation of Basic and Diluted Net Income (Loss) Per Ordinary Share |
The following table sets forth the computation of basic and diluted net income (loss) per ordinary share for the periods indicated:
|
|
Three Months Ended October 31, |
|
|
Nine Months Ended October 31, |
|
|
|
2018 |
|
|
2017 |
|
|
2018 |
|
|
2017 |
|
|
|
(in thousands, except share and per share data) |
|
Numerator: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Net income (loss) |
|
$ |
(9,021 |
) |
|
$ |
11,724 |
|
|
$ |
(25,904 |
) |
|
$ |
17,591 |
|
Denominator: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Weighted-average ordinary shares - basic |
|
|
32,171,890 |
|
|
|
33,128,761 |
|
|
|
32,908,614 |
|
|
|
33,203,432 |
|
Effect of potentially dilutive securities: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Employee stock options |
|
|
— |
|
|
|
913,496 |
|
|
|
— |
|
|
|
967,903 |
|
Restricted stock and restricted stock units |
|
|
— |
|
|
|
311,430 |
|
|
|
— |
|
|
|
363,476 |
|
Employee stock purchase plan |
|
|
— |
|
|
|
5,206 |
|
|
|
— |
|
|
|
4,157 |
|
Weighted-average ordinary shares - diluted |
|
|
32,171,890 |
|
|
|
34,358,893 |
|
|
|
32,908,614 |
|
|
|
34,538,968 |
|
Net income (loss) per ordinary share: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Basic |
|
$ |
(0.28 |
) |
|
$ |
0.35 |
|
|
$ |
(0.79 |
) |
|
$ |
0.53 |
|
Diluted |
|
$ |
(0.28 |
) |
|
$ |
0.34 |
|
|
$ |
(0.79 |
) |
|
$ |
0.51 |
|
|
Weighted-Average Potentially Dilutive Securities Excluded from Computation of Diluted Net Income (Loss) Per Ordinary Share |
The following weighted-average potentially dilutive securities were excluded from the computation of diluted net income (loss) per ordinary share as their effect would have been antidilutive:
|
|
Three Months Ended October 31, |
|
|
Nine Months Ended October 31, |
|
|
|
2018 |
|
|
2017 |
|
|
2018 |
|
|
2017 |
|
Options to purchase ordinary shares |
|
|
1,247,117 |
|
|
|
290,648 |
|
|
|
1,172,152 |
|
|
|
274,629 |
|
Restricted stock and restricted stock units |
|
|
2,243,272 |
|
|
|
1,224,115 |
|
|
|
1,494,860 |
|
|
|
977,904 |
|
Employee stock purchase plan |
|
|
58,530 |
|
|
|
36,076 |
|
|
|
35,204 |
|
|
|
20,675 |
|
|
|
|
3,548,919 |
|
|
|
1,550,839 |
|
|
|
2,702,216 |
|
|
|
1,273,208 |
|
|