XML 106 R83.htm IDEA: XBRL DOCUMENT v3.24.2.u1
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, 2024
Jul. 31, 2023
Jul. 31, 2022
Summary of stock option activity, number of shares      
Number of shares, beginning balance (in shares) 2,130 2,292 2,204
Granted (in shares) 326 413 400
Exercised (in shares) (570) (551) (242)
Canceled or expired (in shares) (114) (24) (70)
Number of shares, ending balance (in shares) 1,772 2,130 2,292
Weighted Average Exercise Price Per Share      
Weighted-average exercise price per share, Beginning Balance (in dollars per share) $ 360.17 $ 289.62 $ 251.48
Granted (in dollars per share) 626.32 489.85 448.59
Exercised (in dollars per share) 212.89 163.64 164.94
Canceled or expired (in dollars per share) 467.16 368.72 426.22
Weighted-average exercise price per share, Ending Balance (in dollars per share) $ 449.66 $ 360.17 $ 289.62
Stock Options Outstanding      
Number of shares (in thousands), options outstanding (in shares) 1,772 2,130 2,292
Weighted average remaining contractual life (in years), options outstanding 4 years 6 months 14 days    
Weighted-average exercise price per share, options outstanding (in dollars per share) $ 449.66 $ 360.17 $ 289.62
Aggregate intrinsic value (in millions), options outstanding $ 350    
Number of shares (in thousands), options exercisable (in shares) 946    
Weighted-average remaining contractual life (in years) options exercisable 3 years 2 months 19 days    
Weighted-average exercise price per share, options exercisable (in dollars per share) $ 372.54    
Aggregate intrinsic value (in millions), options exercisable $ 260    
Additional information on stock options and ESPP shares      
Weighted-average fair value of options granted (in dollars per share) $ 188.54 $ 144.92 $ 136.76
Total grant date fair value of options vested $ 38 $ 33 $ 25
Aggregate intrinsic value of options exercised 209 150 78
Total tax benefit for stock option and ESPP share-based compensation 594 373 396
Cash received from option exercises 121 90 40
Cash tax benefits realized related to tax deductions for non-qualified option exercises and disqualifying dispositions under all share-based payment arrangements 49 31 37
Stock Options and ESPP      
Additional information on stock options and ESPP shares      
Share-based compensation expense for stock options and ESPP 83 76 60
Total tax benefit for stock option and ESPP share-based compensation $ 49 $ 34 $ 21