XML 19 R8.htm IDEA: XBRL DOCUMENT v3.21.1
Consolidated Statements of Cash Flows (Unaudited) - USD ($)
$ in Thousands
9 Months Ended
Apr. 30, 2021
Apr. 30, 2020
Operating activities    
Net income (loss) $ 58,018 $ (133)
Adjustments to reconcile net income (loss) to net cash provided by (used in) operating activities:    
Depreciation and amortization 13,381 15,718
Deferred income taxes (13,811) 2,912
Provision for doubtful accounts receivable 1,220 2,282
Stock-based compensation 1,215 3,341
(Gain) loss on investments (4,923) 814
Change in assets and liabilities:    
Trade accounts receivable 1,626 8,374
Prepaid expenses, other current assets, and other assets (7,961) (13,080)
Trade accounts payable, accrued expenses, other current liabilities, and other liabilities (2,154) (18,894)
Customer deposits at IDT Financial Services Limited (Gibraltar-based bank) (11,078) (67,273)
Deferred revenue 2,611 (4,704)
Net cash provided by (used in) operating activities 38,144 (70,643)
Investing activities    
Capital expenditures (13,455) (11,861)
Payments for acquisitions, net of cash acquired (2,656) (450)
Purchase of Rafael Holdings, Inc. Class B common stock and warrant (5,000)
Exercise of warrant to purchase shares of Rafael Holdings, Inc. Class B common stock (1,000)
Purchase of series B convertible preferred stock in equity method investment (4,000)
Purchases of debt securities and equity investments (39,347) (14,790)
Proceeds from maturities and sales of debt securities and redemptions of equity investments 18,670 4,317
Net cash used in investing activities (46,788) (22,784)
Financing activities    
Distributions to noncontrolling interests (646) (680)
Repayment of other liabilities. (69) (449)
Proceeds from note payable 10,000
Repayment of note payable (10,000)
Repayments of borrowings under revolving credit facility (1,429)
Proceeds from borrowings under revolving credit facility 1,429
Proceeds from exercise of stock options 686 276
Repurchases of Class B common stock (4,192) (478)
Net cash used in financing activities (4,221) (1,331)
Effect of exchange rate changes on cash, cash equivalents, and restricted cash and cash equivalents 6,652 4,012
Net decrease in cash, cash equivalents, and restricted cash and cash equivalents (6,213) (90,746)
Cash, cash equivalents, and restricted cash and cash equivalents at beginning of period 201,222 257,199
Cash, cash equivalents, and restricted cash and cash equivalents at end of period 195,009 166,453
Supplemental schedule of non-cash investing and financing activities    
Liabilities incurred for acquisition $ 393 $ 375