v3.7.0.1
CONDENSED CONSOLIDATED STATEMENTS OF CASH FLOWS - USD ($)
$ in Millions
3 Months Ended
Aug. 31, 2017
Aug. 31, 2016
Cash flows from operating activities:    
Net income $ 2,210 $ 1,832
Adjustments to reconcile net income to net cash provided by operating activities:    
Depreciation 285 222
Amortization of intangible assets 411 311
Deferred income taxes 159 145
Stock-based compensation 403 319
Other, net 47 39
Changes in operating assets and liabilities, net of effects from acquisitions:    
Decrease in trade receivables, net 1,752 1,993
Increase in inventories (11) (75)
Decrease in prepaid expenses and other assets 555 435
Decrease in accounts payable and other liabilities (1,062) (1,013)
Increase (decrease) in income taxes payable 32 (94)
Increase in deferred revenues 1,785 1,761
Net cash provided by operating activities 6,566 5,875
Cash flows from investing activities:    
Purchases of marketable securities and other investments (7,671) (5,513)
Proceeds from maturities and sales of marketable securities and other investments 6,326 1,752
Acquisitions, net of cash acquired 0 (1,143)
Capital expenditures (473) (299)
Net cash used for investing activities (1,818) (5,203)
Cash flows from financing activities:    
Payments for repurchases of common stock (502) (2,002)
Proceeds from issuances of common stock 1,014 487
Shares repurchased for tax withholdings upon vesting of restricted stock-based awards (331) (170)
Payments of dividends to stockholders (788) (618)
Proceeds from borrowings, net of issuance costs 0 13,932
Repayments of borrowings (4,800) (3,750)
Distributions to noncontrolling interests (34) (167)
Net cash (used for) provided by financing activities (5,441) 7,712
Effect of exchange rate changes on cash and cash equivalents 230 78
Net (decrease) increase in cash and cash equivalents (463) 8,462
Cash and cash equivalents at beginning of period 21,784 20,152
Cash and cash equivalents at end of period 21,321 28,614
Non-cash investing and financing transactions:    
Fair values of restricted stock-based awards and stock options assumed in connection with acquisitions 0 6
Decrease in unsettled repurchases of common stock (2) (3)
Decrease in unsettled investment purchases $ (138) $ (95)