XML 109 R79.htm IDEA: XBRL DOCUMENT v3.22.2.2
Stockholders' Equity - Stock Option Activity and Related Share-Based Compensation Expense (Details) - USD ($)
$ / shares in Units, shares in Thousands, $ in Millions
12 Months Ended
Jul. 31, 2022
Jul. 31, 2021
Jul. 31, 2020
Summary of stock option activity, number of shares      
Number of shares, beginning balance (in shares) 2,204 2,681 3,374
Granted (in shares) 400 323 382
Exercised (in shares) (242) (718) (993)
Canceled or expired (in shares) (70) (82) (82)
Number of shares, ending balance (in shares) 2,292 2,204 2,681
Weighted Average Exercise Price Per Share      
Weighted average exercise price per share, Beginning Balance (in dollars per share) $ 251.48 $ 185.83 $ 150.75
Granted (in dollars per share) 448.59 525.51 303.94
Exercised (in dollars per share) 164.94 128.39 111.82
Canceled or expired (in dollars per share) 426.22 264.53 188.39
Weighted average exercise price per share, Ending Balance (in dollars per share) $ 289.62 $ 251.48 $ 185.83
Stock Options Outstanding      
Number of shares (in thousands), options outstanding (in shares) 2,292 2,204 2,681
Weighted average remaining contractual life (in years), options outstanding 3 years 11 months 23 days    
Weighted average exercise price per share, options outstanding (in dollars per share) $ 289.62 $ 251.48 $ 185.83
Aggregate intrinsic value (in millions), options outstanding $ 361    
Number of shares (in thousands), options exercisable (in shares) 1,440    
Weighted average remaining contractual life (in years) options exercisable 2 years 8 months 26 days    
Weighted average exercise price per share, options exercisable (in dollars per share) $ 209.73    
Aggregate intrinsic value (in millions), options exercisable $ 328    
Market price of common stock (in dollars per share) $ 456.17    
Additional information on stock options and ESPP shares      
Weighted average fair value of options granted (in dollars per share) $ 136.76 $ 122.16 $ 74.85
Total grant date fair value of options vested $ 25 $ 17 $ 23
Aggregate intrinsic value of options exercised 78 179 159
Total tax benefit for stock option and ESPP share-based compensation 396 269 173
Cash received from option exercises 40 92 111
Cash tax benefits realized related to tax deductions for non-qualified option exercises and disqualifying dispositions under all share-based payment arrangements 37 48 39
Stock Options And Espp      
Additional information on stock options and ESPP shares      
Share-based compensation expense for stock options and ESPP 60 45 53
Total tax benefit for stock option and ESPP share-based compensation 21 $ 44 $ 39
Employee Stock Option      
Additional information on stock options and ESPP shares      
Unrecognized compensation cost $ 98    
Weighted average vesting period 3 years 3 months 18 days