EARNINGS PER SHARE - Computation of basic and diluted earnings per share (Details) - USD ($) $ / shares in Units, shares in Thousands, $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Jun. 30, 2015 |
Mar. 31, 2015 |
Dec. 31, 2014 |
Sep. 30, 2014 |
Jun. 30, 2014 |
Mar. 31, 2014 |
Dec. 31, 2013 |
Sep. 30, 2013 |
Jun. 30, 2015 |
Jun. 30, 2014 |
Jun. 30, 2013 |
|
| Numerator: | |||||||||||
| Net income and comprehensive income | $ 4,518 | $ 41,137 | $ 46,265 | $ 37,743 | $ 49,418 | $ 45,199 | $ 41,792 | $ 40,528 | $ 129,663 | $ 176,937 | $ 80,490 |
| Denominator: | |||||||||||
| Weighted-average shares used in computing basic net income per share | 88,008 | 87,772 | 88,314 | ||||||||
| Weighted-average shares used in computing diluted net income per share | 89,569 | 89,715 | 90,259 | ||||||||
| Net income per share of common stock: | |||||||||||
| Net income (loss) per basic share of common stock (in dollars per share) | $ 0.05 | $ 0.47 | $ 0.52 | $ 0.43 | $ 0.56 | $ 0.51 | $ 0.48 | $ 0.46 | $ 1.47 | $ 2.02 | $ 0.91 |
| Net income (loss) per diluted share of common stock (in dollars per share) | $ 0.05 | $ 0.46 | $ 0.52 | $ 0.42 | $ 0.55 | $ 0.50 | $ 0.47 | $ 0.45 | $ 1.45 | $ 1.97 | $ 0.89 |
| Stock options | |||||||||||
| Denominator: | |||||||||||
| Dilutive potential common shares | 1,392 | 1,696 | 1,803 | ||||||||
| Restricted stock units | |||||||||||
| Denominator: | |||||||||||
| Dilutive potential common shares | 169 | 247 | 142 | ||||||||