XML 69 R37.htm IDEA: XBRL DOCUMENT
v3.21.1

Earnings Per Share (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2020
Earnings Per Share |
Schedule of components of the calculations of basic and diluted earnings per share: | The following table provides the components of the calculations of basic and diluted earnings per share (in thousands, except share amounts): ​
​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | Year ended December 31,
​ | ​ | ​ | ​ | ​ | ​ | 2019 | ​ | ​ | 2018 | ​
​ |  | 2020 |  | (as restated) |  | ​ | (as restated) | ​
Numerator: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Net loss attributable to common stockholders | ​ | $ | (596,181) | ​ | $ | (85,555) | ​ | $ | (85,660) | ​
Denominator: | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​ | ​
Weighted average number of common stock outstanding | ​ |  | 354,790,106 | ​ |  | 237,152,780 | ​ |  | 218,882,337 | ​
​
Schedule of potential dilutive common shares |
​ | ​ | ​ | ​ | ​ | ​ | ​
​ | ​ | At December 31,
​ |  | 2020 |  | 2019 |  | 2018
Stock options outstanding (1) | ​ | 10,284,498 |  | 23,013,590 |  | 21,957,150
Restricted stock outstanding (2) | ​ | 5,874,642 |  | 4,608,560 |  | 2,347,347
Common stock warrants (3) | ​ | 104,753,740 | ​ | 110,573,392 | ​ | 115,824,142
Preferred stock (4) | ​ | — |  | 2,998,527 |  | 17,933,591
Convertible Senior Notes (5) | ​ | 42,256,610 |  | 59,133,896 |  | 43,630,020
Number of dilutive potential shares of common stock | ​ | 163,169,490 |  | 200,327,965 | ​ | 201,692,250
​
(1) | During the years ended December 31, 2020, 2019, and 2018, the Company granted 3,509,549, 3,221,892, and 2,679,667 stock options, respectively.
​
(2) | During the years ended December 31, 2020, 2019, and 2018, the Company granted 3,227,149, 3,201,892, and 2,367,347 shares of restricted stock, respectively.
​
(3) | In April 2017, the Company issued a warrant to acquire up to 55,286,696 of the Company’s common stock as part of a transaction agreement with Amazon, subject to certain vesting events, as described in Note 18, “Warrant Transaction Agreements.” The warrant had not been exercised as of December 31, 2020.
​ In July 2017, the Company issued a warrant to acquire up to 55,286,696 of the Company’s common stock as part of a transaction agreement with Walmart, subject to certain vesting events, as described in Note 18, “Warrant Transaction Agreements.” The warrant had been exercised with respect to 5,819,652 shares as of December 31, 2020. ​
(4) | The preferred stock amount represents the dilutive potential on the shares of common stock as a result of the conversion of the Series C Redeemable Convertible Preferred Stock (Series C Preferred Stock) and Series E Convertible Preferred Stock (Series E Preferred Stock), based on the conversion price of each preferred stock as of December 31 2019, and 2018, respectively. Of the 10,431 shares of Series C Preferred Stock issued on May 16, 2013, all shares had been converted to common stock as of December 31, 2020. On November 1, 2018, the Company issued 35,000 shares of Series E Preferred Stock. As of December 31, 2019, 30,462 shares of the Series E Preferred Stock had been converted to common stock and 4,038 shares were redeemed for cash. All of the remaining Series E Preferred Stock were converted to either common stock or cash, in January 2020.
​
(5) | In March 2018, the Company issued the 5.5% Convertible Senior Notes. In September 2019, the Company issued the $7.5% Convertible Senior Note, which was fully converted into 16.0 million shares on July 1, 2020. In May 2020, the Company issued the 3.5% Convertible Senior Notes and repurchased $66.3 million of the 5.5% Convertible Senior Notes. In the fourth quarter of 2020, $33.5 million of the remaining 5.5% Convertible Senior Notes converted into 14.6 million shares of common stock. As of December 31, 2020, approximately $160 thousand aggregate principal amount of the 5.5% Convertible Senior Notes remained outstanding, all of which was converted in January 2021.

X
- References No definition available. + Details
Name: | us-gaap_EarningsPerShareAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of securities (including those issuable pursuant to contingent stock agreements) that could potentially dilute basic earnings per share (EPS) in the future that were not included in the computation of diluted EPS because to do so would increase EPS amounts or decrease loss per share amounts for the period presented, by antidilutive securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of an entity's basic and diluted earnings per share calculations, including a reconciliation of numerators and denominators of the basic and diluted per-share computations for income from continuing operations. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 260 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=6371337&loc=d3e3550-109257 + Details
Name: | us-gaap_ScheduleOfEarningsPerShareBasicAndDilutedTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration