v3.20.1
Net income per share (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Thousands
3 Months Ended 12 Months Ended
Jan. 31, 2020
Oct. 31, 2019
Jul. 31, 2019
Apr. 30, 2019
Jan. 31, 2019
Oct. 31, 2018
Jul. 31, 2018
Apr. 30, 2018
Jan. 31, 2020
Jan. 31, 2019
Jan. 31, 2018
Numerator (basic and diluted):                      
Net income $ (190) $ (21,334) $ 19,366 $ 41,822 $ 13,119 $ 15,686 $ 22,517 $ 22,577 $ 39,664 $ 73,899 $ 47,362
Denominator (basic):                      
Weighted-average common shares outstanding (shares)                 67,026 61,836 60,304
Denominator (diluted):                      
Weighted-average common shares outstanding (shares)                 67,026 61,836 60,304
Weighted-average dilutive effect of stock options and restricted stock units                 1,427 1,534 1,550
Diluted weighted-average common shares outstanding                 68,453 63,370 61,854
Net income per share:                      
Basic (usd per share) $ 0 $ (0.30) $ 0.30 $ 0.67 $ 0.21 $ 0.25 $ 0.36 $ 0.37 $ 0.59 $ 1.20 $ 0.79
Diluted (usd per share) $ 0 $ (0.30) $ 0.30 $ 0.65 $ 0.21 $ 0.25 $ 0.36 $ 0.36 $ 0.58 $ 1.17 $ 0.77
Antidilutive securities excluded from computation of earnings per share (shares)                 300 100 600