Earnings per share (Details) - USD ($) $ / shares in Units, $ in Thousands |
3 Months Ended | 12 Months Ended | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Dec. 31, 2018 |
Sep. 30, 2018 |
Jun. 30, 2018 |
Mar. 31, 2018 |
Dec. 31, 2017 |
Sep. 30, 2017 |
Jun. 30, 2017 |
Mar. 31, 2017 |
Dec. 31, 2018 |
Dec. 31, 2017 |
Dec. 31, 2016 |
|
Net loss per share: | |||||||||||
Basic and diluted (in dollars per share) | $ (0.96) | $ (1.06) | $ (0.21) | $ (0.46) | $ 0.03 | $ (0.82) | $ (0.44) | $ (0.85) | $ (2.75) | $ (2.02) | $ (4.17) |
Numerator | |||||||||||
Net loss | $ (48,330) | $ (50,969) | $ (9,520) | $ (19,263) | $ 1,270 | $ (33,738) | $ (17,475) | $ (29,057) | $ (128,081) | $ (79,000) | $ (142,110) |
Denominator | |||||||||||
Denominator for basic and diluted net loss per share (in shares) | 46,576,313 | 39,183,073 | 34,044,584 | ||||||||
Total shares excluded from calculation (in shares) | 9,105,837 | 6,841,653 | 6,125,967 | ||||||||
Stock Options | |||||||||||
Denominator | |||||||||||
Total shares excluded from calculation (in shares) | 8,534,358 | 6,448,642 | 5,854,316 | ||||||||
Unvested restricted stock | |||||||||||
Denominator | |||||||||||
Total shares excluded from calculation (in shares) | 571,479 | 393,011 | 271,651 |