XML 50 R30.htm IDEA: XBRL DOCUMENT v3.23.1
Description of Business and Summary of Significant Accounting Policies - Basic and Diluted Net Income Per Share (Details) - USD ($)
$ / shares in Units, shares in Millions, $ in Millions
3 Months Ended 9 Months Ended
Apr. 30, 2023
Apr. 30, 2022
Apr. 30, 2023
Apr. 30, 2022
Accounting Policies [Abstract]        
Net income $ 2,087 $ 1,794 $ 2,295 $ 2,122
Shares used in basic per share amounts:        
Weighted-average common shares outstanding (in shares) 281 282 281 279
Shares used in diluted per share amounts:        
Weighted-average common shares outstanding (in shares) 281 282 281 279
Dilutive common equivalent shares from stock options and restricted stock awards (in shares) 2 4 2 5
Dilutive weighted-average common shares outstanding (in shares) 283 286 283 284
Basic and diluted net income per share:        
Basic net income per share (in dollars per share) $ 7.44 $ 6.35 $ 8.17 $ 7.60
Diluted net income per share (in dollars per share) $ 7.38 $ 6.28 $ 8.11 $ 7.48
Shares excluded from diluted net income per share:        
Weighted-average stock options and restricted stock units that have been excluded from dilutive common equivalent shares outstanding due to their anti-dilutive effect (in shares) 2 2 2 1