XML 26 R6.htm IDEA: XBRL DOCUMENT v3.21.1
Consolidated Statements of Cash Flows - USD ($)
$ in Thousands
12 Months Ended
Jan. 31, 2021
Jan. 31, 2020
Jan. 31, 2019
Cash flows from operating activities:      
Net loss $ (243,267) $ (208,359) $ (426,458)
Adjustments to reconcile net loss to net cash provided by operating activities      
Depreciation and amortization 71,090 50,182 38,027
Amortization of deferred contract acquisition and fulfillment costs 99,384 69,747 42,112
Amortization of debt discount and transaction costs 28,001 26,389 9,507
Loss on extinguishment of debt 33,752 0 0
Operating cash flow related to repayments of convertible senior notes (75,165) 0 0
Non-cash operating lease costs 26,728 19,435 0
Stock-based compensation expense 286,877 206,404 410,978
Deferred income taxes (2,410) 1,287 (5,001)
Other (210) (1,741) 800
Changes in operating assets and liabilities      
Accounts receivable (73,913) (63,293) (42,571)
Contract assets 1,912 (1,508) 4,204
Prepaid expenses and other current assets (1,155) (3,142) (3,283)
Deferred contract acquisition and fulfillment costs (208,510) (115,723) (80,869)
Other assets (6,006) 1,538 2,658
Accounts payable 12,128 3,849 (7,380)
Accrued expenses and other liabilities 37,155 9,353 6,449
Accrued compensation 64,586 5,636 26,039
Contract liabilities 267,750 130,266 100,874
Operating lease liabilities (21,773) (14,624) 0
Net cash provided by operating activities 296,954 115,696 76,086
Cash flows from investing activities:      
Cash paid for acquisition, net of acquired cash (180,370) 0 (218,779)
Purchases of marketable securities (164,989) (861,252) (415,132)
Sales of marketable securities 28,986 0 0
Maturities of marketable securities 488,538 627,309 0
Purchases of strategic investments (5,300) (15,500) 0
Purchases of other investments (3,241) 0 0
Purchases of property and equipment (82,395) (72,046) (30,413)
Net cash (used in) provided by investing activities 81,229 (321,489) (664,324)
Cash flows from financing activities:      
Proceeds from issuance of convertible senior notes, net of initial purchasers' discounts and transaction costs 677,370 0 560,756
Purchase of capped calls related to issuance of convertible senior notes (31,395) 0 (67,563)
Repayments of convertible senior notes (384,199) 0 0
Payment of revolving credit facility costs (2,453) 0 0
Proceeds from issuance of common stock in initial public offering, net of underwriting commissions 0 0 529,305
Payment of tax withholding obligation on RSU settlement and ESPP purchase (372,463) (166,504) (215,332)
Proceeds from exercise of stock options 24,305 72,177 50,211
Proceeds from employee stock purchase plan 29,859 23,872 0
Payment of deferred offering costs 0 0 (4,011)
Other financing 0 0 (250)
Net cash (used in) provided by financing activities (58,976) (70,455) 853,116
Effect of foreign exchange on cash, cash equivalents and restricted cash 5,646 (447) (4,136)
Net increase (decrease) in cash, cash equivalents and restricted cash 324,853 (276,695) 260,742
Cash, cash equivalents and restricted cash at beginning of period 241,483 518,178 257,436
Cash, cash equivalents and restricted cash at end of period 566,336 241,483 518,178
Supplemental disclosure:      
Cash paid for interest 78,040 2,852 204
Cash paid for operating lease liabilities 35,176 22,034 0
Cash paid for income taxes 3,503 1,970 3,213
Non-cash investing and financing activities:      
Property and equipment in accounts payable and accrued expenses and other current liabilities 3,903 14,082 2,293
Operating lease right-of-use assets exchanged for lease obligations 30,816 77,391 0
Fair value of shares issued as consideration for acquisition 48,361 0 0
Fair value of shares issued as part of the repayments of convertible senior notes 1,233,990 0 0
Conversion of redeemable convertible preferred stock to common stock in connection with initial public offering 0 0 547,854
Conversion of preferred stock warrant to common stock warrant in connection with initial public offering 0 0 848
Preferred stock accretion 0 0 353
Recognition of build-to-suit lease 0 0 2,479
Derecognition of build-to-suit lease $ 0 $ 2,479 $ 0