XML 18 R7.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
6 Months Ended
Jan. 31, 2022
Jan. 31, 2021
Cash flows from operating activities:    
Net loss $ (534,913) $ (552,438)
Adjustments to reconcile net loss to net cash (used in) provided by operating activities:    
Depreciation and amortization 45,582 47,087
Stock-based compensation 178,592 173,652
Change in fair value of derivative liability 198,038 166,380
Loss on debt extinguishment 64,910 0
Amortization of debt discount and issuance costs 19,796 28,796
Operating lease cost, net of accretion 18,336 16,930
Impairment of lease-related assets 0 2,822
Non-cash interest expense 9,575 6,615
Other 5,156 4,354
Changes in operating assets and liabilities:    
Accounts receivable, net 23,826 79,173
Deferred commissions (13,332) (67,677)
Prepaid expenses and other assets (4,951) (9,217)
Accounts payable (2,391) (2,602)
Accrued compensation and benefits (19,496) 39,593
Accrued expenses and other liabilities (3,371) 2,100
Operating leases, net (23,619) (16,523)
Deferred revenue 70,968 61,325
Net cash (used in) provided by operating activities 32,706 (19,630)
Cash flows from investing activities:    
Maturities of investments 568,697 260,852
Purchases of investments (556,148) (859,576)
Sales of investments 17,999 2,999
Purchases of property and equipment (17,390) (25,168)
Net cash used in investing activities 13,158 (620,893)
Cash flows from financing activities:    
Payments of debt extinguishment costs (14,709) 0
Proceeds from unwinding of convertible note hedges 39,880 0
Payments for unwinding of warrants (18,390) 0
Proceeds from sales of shares through employee equity incentive plans 32,053 21,904
Proceeds from the issuance of convertible notes, net of issuance costs 89,128 723,617
Repurchases of common stock (58,570) (125,079)
Payment of finance lease obligations (323) 0
Net cash provided by financing activities 69,069 620,442
Net increase in cash, cash equivalents and restricted cash 114,933 (20,080)
Cash, cash equivalents and restricted cash—beginning of period 288,873 321,991
Cash, cash equivalents and restricted cash—end of period 403,806 301,911
Restricted cash [1] 3,057 3,210
Cash and cash equivalents—end of period 400,749 298,701
Supplemental disclosures of cash flow information:    
Cash paid for income taxes 12,084 8,999
Supplemental disclosures of non-cash investing and financing information:    
Purchases of property and equipment included in accounts payable and accrued and other liabilities 18,939 7,621
Finance lease liabilities arising from obtaining right-of-use assets 11,148 1,960
Convertible senior notes offering costs included in accrued liabilities $ 693 $ 0
[1] Included within other assets—non-current in the condensed consolidated balance sheets.