XML 76 R7.htm IDEA: XBRL DOCUMENT v3.19.3.a.u2
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Jan. 31, 2020
Jan. 31, 2019
Jan. 31, 2018
Cash flows from operating activities:      
Net loss $ (208,913) $ (125,497) [1] $ (109,849) [1]
Adjustments to reconcile net loss to net cash provided by (used in) operating activities:      
Stock-based compensation 126,624 76,320 [1] 49,860 [1]
Depreciation, amortization and accretion 17,815 8,001 [1] 7,001 [1]
Amortization of debt discount and issuance costs 25,892 14,279 [1] 0 [1]
Amortization of deferred commissions 28,588 20,852 [1] 15,180 [1]
Deferred income taxes (2,253) (765) [1] (534) [1]
Write-off of intangible assets 119 0 [1] 1,114 [1]
Non-cash charitable contributions 1,746 1,008 [1] 708 [1]
Loss on early extinguishment of debt 14,572 0 [1] 0 [1]
Other, net (130) 640 [1] 719 [1]
Changes in operating assets and liabilities:      
Accounts receivable (37,515) (39,682) [1] (18,321) [1]
Deferred commissions (61,224) (41,342) [1] (26,986) [1]
Prepaid expenses and other assets (4,080) (10,334) [1] (9,400) [1]
Operating lease right-of-use assets 12,951 17,239 [1] 7,776 [1]
Accounts payable 1,689 (1,437) [1] (2,464) [1]
Accrued compensation 23,034 7,429 [1] 3,582 [1]
Accrued expenses and other liabilities 9,972 5,800 [1] 5,801 [1]
Operating lease liabilities (9,716) (6,642) [1] (7,087) [1]
Deferred revenue 116,432 89,303 [1] 57,660 [1]
Net cash provided by (used in) operating activities 55,603 15,172 [1] (25,240) [1]
Cash flows from investing activities:      
Capitalization of internal-use software costs (3,888) (2,851) [1] (5,431) [1]
Purchases of property and equipment (15,442) (19,811) [1] (6,550) [1]
Proceeds from sales of property and equipment 0 740 [1] 0 [1]
Purchases of securities available for sale and other (999,387) (631,488) [1] (129,086) [1]
Proceeds from maturities and redemption of securities available for sale 356,277 298,650 [1] 39,825 [1]
Proceeds from sales of securities available for sale and other 27,271 173,072 [1] 1,538 [1]
Purchase of intangible assets (8,589) 0 [1] 0 [1]
Payments for business acquisition, net of cash acquired (44,283) (15,632) [1] 0 [1]
Net cash used in investing activities (688,041) (197,320) [1] (99,704) [1]
Cash flows from financing activities:      
Proceeds from initial public offering, net of underwriters' discounts and commissions 0 0 [1] 199,948 [1]
Proceeds from issuance of convertible senior notes, net of issuance costs 1,040,660 334,980 [1] 0 [1]
Payments for repurchases of 2023 convertible senior notes (224,414) 0 [1] 0 [1]
Purchases of hedges related to 2023 convertible senior notes 0 (80,040) [1] 0 [1]
Proceeds from hedges related to 2023 convertible senior notes 405,851 0 [1] 0 [1]
Proceeds from issuance of warrants related to 2023 convertible senior notes 0 52,440 [1] 0 [1]
Payments for warrants related to 2023 convertible senior notes (358,622) 0 [1] 0 [1]
Purchases of capped calls related to 2025 convertible senior notes (74,094) 0 [1] 0 [1]
Payments of deferred offering costs 0 0 [1] (4,038) [1]
Proceeds from stock option exercises, net of repurchases 45,363 36,861 [1] 33,646 [1]
Proceeds from shares issued in connection with employee stock purchase plan 18,767 13,727 [1] 8,369 [1]
Other, net (126) (206) [1] (517) [1]
Net cash provided by financing activities 853,385 357,762 [1] 237,408 [1]
Effects of changes in foreign currency exchange rates on cash, cash equivalents and restricted cash (209) (632) [1] 487 [1]
Net increase in cash, cash equivalents and restricted cash 220,738 174,982 [1] 112,951 [1]
Cash, cash equivalents and restricted cash at beginning of year [1] 311,215 136,233 23,282
Cash, cash equivalents and restricted cash at end of year 531,953 311,215 [1] 136,233 [1]
Cash paid during the period for:      
Interest 862 403 [1] 19 [1]
Income taxes 1,123 514 [1] 747 [1]
Non-cash investing and financing activities:      
Issuance of common stock for repurchases of 2023 convertible senior notes 380,406 0 [1] 0 [1]
Vesting of early exercised common stock options 370 763 [1] 1,335 [1]
Issuance of common stock in connection with warrant exercises 0 0 272
Common stock issued as charitable contribution 1,746 1,008 [1] 708 [1]
Operating lease right-of-use assets exchanged for lease obligations 16,832 127,575 [1] 44,668 [1]
Property and equipment acquired through tenant improvement allowances 304 22,236 [1] 0 [1]
Property and equipment and other accrued but not yet paid 855 7,225 [1] 111 [1]
Bonus settled through the issuance of common stock 2,809 0 [1] 0 [1]
Issuance of common stock in connection with business combination 0 0 [1] 2,160 [1]
Conversion of redeemable convertible preferred stock to common stock 0 0 [1] 228,362 [1]
Reconciliation of cash, cash equivalents, and restricted cash within the consolidated balance sheets to the amounts shown in the statements of cash flows above:      
Total cash, cash equivalents and restricted cash [1] $ 311,215 $ 136,233 $ 136,233
[1] Adjusted for adoption of ASC 842. See Note 2.