XML 22 R7.htm IDEA: XBRL DOCUMENT v3.22.0.1
CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2021
Dec. 31, 2020
Dec. 31, 2019
Cash flows from operating activities:      
Net loss $ (112,746) $ (137,620) $ (70,877)
Adjustments to reconcile net loss to net cash from operating activities:      
Amortization of deferred implementation, solution and other costs 24,496 22,936 13,634
Depreciation and amortization 54,833 51,840 28,457
Amortization of debt issuance costs 2,038 1,977 1,467
Amortization of debt discount 25,824 21,317 15,154
Amortization of premiums on investments 1,117 366 226
Stock-based compensation expense 55,903 50,682 40,510
Realized loss on sale of marketable securities 0 (14) 0
Deferred income taxes 180 946 (12,774)
Allowance for credit losses (25) 306 0
Allowance for sales credits 39 2 172
Loss on disposal of long-lived assets 389 151 287
Loss on extinguishment of debt 1,513 8,932 0
Impairment of intangible assets 0 0 6
Unoccupied lease charges 2,008 2,181 420
Changes in operating assets and liabilities:      
Accounts receivable, net (10,072) (14,560) 372
Prepaid expenses and other current assets 532 (2,440) (822)
Deferred solution and other costs (12,776) (15,333) (23,548)
Deferred implementation costs (12,847) (16,880) (14,296)
Contract assets (4,165) (3,721) (5,191)
Other long-term assets 7,851 3,711 6,141
Accounts payable 1,757 (2,297) 1,126
Accrued liabilities 104 (685) 14,718
Deferred revenue 15,743 20,351 13,400
Deferred rent and other long-term liabilities (10,771) 4,962 (8,015)
Net cash provided by (used in) operating activities 30,925 (2,890) 567
Cash flows from investing activities:      
Purchases of investments (124,034) (131,337) (27,330)
Maturities of investments 149,176 31,841 63,980
Purchases of property and equipment (19,754) (23,715) (13,860)
Business combinations, net of cash acquired (64,652) 0 (505,577)
Purchase of intangible assets 0 0 (288)
Capitalized software development costs (5,865) (952) (177)
Net cash used in investing activities (65,129) (124,163) (483,252)
Cash flows from financing activities:      
Proceeds from issuance of common stock, net of issuance costs 0 311,321 195,289
Proceeds from issuance of convertible notes, net of issuance costs 0 132,589 307,016
Purchases of capped call transactions 0 (39,830) (40,765)
Payment for repurchases of convertible notes (63,692) 0 0
Proceeds from bond hedges related to convertible notes 26,295 171,679 0
Payments for warrants related to convertible notes (19,655) (137,538) 0
Payment of contingent consideration 0 (16,862) 0
Proceeds from exercise of stock options to purchase common stock 5,892 13,317 14,551
Net cash provided by (used in) financing activities (51,160) 434,676 476,091
Net increase (decrease) in cash, cash equivalents, and restricted cash (85,364) 307,623 (6,594)
Cash, cash equivalents, and restricted cash, beginning of period 411,185 103,562 110,156
Cash, cash equivalents, and restricted cash, end of period 325,821 411,185 103,562
Supplemental disclosures of cash flow information:      
Cash paid for taxes, net of refund 1,027 566 322
Cash paid for interest 3,104 4,096 2,853
Supplemental disclosure of non-cash investing and financing activities:      
Shares acquired to settle the exercise of stock options (200) (966) (941)
Impact of extinguishment of convertible senior notes due 2023 0 (40,842) 0
Data center assets acquired under deferred payment arrangements or financing arrangements $ 0 $ 448 $ 1,104