Net Income (Loss) Per Share Attributable to Common Stockholders |
Net Income (Loss) Per Share Attributable to Common Stockholders The following tables present the calculation of basic and diluted net income (loss) per share attributable to common stockholders (in thousands, except share and per share data): | | | | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | Six Months Ended December 31, | | Fiscal Year Ended June 30, | | 2012 | | 2011 | | 2010 | | 2011 | | 2010 | | | | | | (Unaudited) | | | | | Numerator: | | | | | | | | | | Net income (loss) | $ | (37,348 | ) | | $ | (6,684 | ) | | $ | 4,803 |
| | $ | 9,830 |
| | $ | (29,705 | ) | Accretion of redeemable convertible preferred stock | (308 | ) | | (312 | ) | | (320 | ) | | (633 | ) | | (640 | ) | Net income attributable to participating securities | — |
| | — |
| | (3,721 | ) | | (7,558 | ) | | — |
| Net income (loss) attributable to common stockholders—basic | $ | (37,656 | ) | | $ | (6,996 | ) | | $ | 762 |
| | $ | 1,639 |
| | $ | (30,345 | ) | Undistributed earnings reallocated to participating securities | $ | — |
| | $ | — |
| | $ | 349 |
| | $ | 671 |
| | $ | — |
| Net income (loss) attributable to common stockholders— diluted | $ | (37,656 | ) | | $ | (6,996 | ) | | $ | 1,111 |
| | $ | 2,310 |
| | $ | (30,345 | ) | Denominator: | | | | | | | | | | Weighted-average shares outstanding Basic | 73,908,631 |
| | 21,104,219 |
| | 17,156,445 |
| | 18,163,977 |
| | 23,157,576 |
| Effect of potentially dilutive securities: | | | | | | | | | | Common stock options | — |
| | — |
| | 10,465,912 |
| | 9,931,509 |
| | — |
| Weighted-average shares outstanding Diluted | 73,908,631 |
| | 21,104,219 |
| | 27,622,357 |
| | 28,095,486 |
| | 23,157,576 |
| Net income (loss) per share attributable to common stockholders: | | | | | | | | | | Basic | $ | (0.51 | ) | | $ | (0.33 | ) | | $ | 0.04 |
| | $ | 0.09 |
| | $ | (1.31 | ) | Diluted | $ | (0.51 | ) | | $ | (0.33 | ) | | $ | 0.04 |
| | $ | 0.08 |
| | $ | (1.31 | ) |
Potentially dilutive securities that are not included in the calculation of diluted net income (loss) per share because doing so would be antidilutive are as follows: | | | | | | | | | | | | | | | | | Year Ended December 31, | | Six Months Ended December 31, | | Fiscal Year Ended June 30, | | 2012 | | 2011 | | 2010 | | 2011 | | 2010 | | | | | | (Unaudited) | | | | | Common stock options | 36,115,460 |
| | 39,601,640 |
| | 7,890,844 |
| | 7,635,190 |
| | 16,520,984 |
| Convertible preferred stock | — |
| | 83,703,016 |
| | 83,703,016 |
| | 83,703,016 |
| | 83,703,016 |
| Restricted stock units | 1,457,870 |
| | — |
| | — |
| | — |
| | — |
| Common stock subject to repurchase | 235,066 |
| | 578,616 |
| | — |
| | 83,551 |
| | — |
| ESPP obligations | 435,945 |
| | — |
| | — |
| | — |
| | — |
| Total potentially dilutive securities | 38,244,341 |
| | 123,883,272 |
| | 91,593,860 |
| | 91,421,757 |
| | 100,224,000 |
|
|