S-1/A Sales and marketing 668 1,235 3,738 2.553 4,524 General and administrative 3,462 4,603 7,604 5,193 11,675 Total $8,114 $14,658 $36,100 $ 24,653 $49,486 F-41 Table of Contepli As of December 31, 2014, there was $177.9 million of total unrecognized compensation cost related to outstanding stock options and restricted stock awards that is expected to be recognized over a weighted average period of 2.86 years. As of September 30, 2015, there was $228.5 million of total unrecognized compensation cost related to outstanding stock options and restricted stock awards that is expected to be recognized over a weighted average period of 3.18 years. NOTE 14—NET LOSS PER SHARE Basic net loss per share is computed by dividing the net loss by the weighted-average number of shares of common stock outstanding during the period. Diluted loss per share is the same as basic loss per share for all years presented because the effects of potentially dilutive items were anti-dilutive given the Company's net loss. The following table presents the calculation of basic and diluted net loss per share (in thousands, except per share data): Year Ended December 31, Nine Months Ended September 30, 2012 2013 2014 2014 2015 (Unaudited) Net loss $(85.199) $(104.493) 5(154,093) $(117,021) 5(131,528) Basic shares: Weighted-average common shares outstanding 131,261 132.562 148,876 146,997 153.965 Weighted-average unvested shares (12.041) (4,717) (6,834) (6,973) (4,907) Weighted-average shares used to compute basic net loss per share 119,220 127,845 142,042 140,024 149,058 Diluted shares: Weighted-average shares used to compute diluted net loss per share 119,220 127.845 142.042 140,024 149.058 Loss per share: Basic $ (0.71) $ (0.82) $ (1.08) $ (0.84) $ (0.88) Diluted $ (0.71) $ (0.82) $ (1.08) $ (0.84) $ (0.88) The following potential common shares were excluded from the calculation of diluted net loss p