| Schedule of earnings per share |
The following tables set forth the computation of basic and diluted net income per share of Class A, Class B, and Class C stock (in millions, except per share amounts): | | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | 2020 | | | Class A | | Class B | | Class C | | Basic net income per share: | | | | | | | Numerator | | | | | | | | | | | | | Allocation of undistributed earnings | $ | 17,733 | | | $ | 2,732 | | | $ | 19,804 | | | Denominator | | | | | | | Number of shares used in per share computation | 5,996 | | | 924 | | | 6,696 | | | | | | | | | | | | | | | | | | | | | Basic net income per share | $ | 2.96 | | | $ | 2.96 | | | $ | 2.96 | | | Diluted net income per share: | | | | | | | Numerator | | | | | | | Allocation of undistributed earnings for basic computation | $ | 17,733 | | | $ | 2,732 | | | $ | 19,804 | | | Reallocation of undistributed earnings as a result of conversion of Class B to Class A shares | 2,732 | | | 0 | | | 0 | | | Reallocation of undistributed earnings | (180) | | | (25) | | | 180 | | | | | | | | | Allocation of undistributed earnings | $ | 20,285 | | | $ | 2,707 | | | $ | 19,984 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Denominator | | | | | | | Number of shares used in basic computation | 5,996 | | | 924 | | | 6,696 | | | Weighted-average effect of dilutive securities | | | | | | | Add: | | | | | | | Conversion of Class B to Class A shares outstanding | 924 | | | 0 | | | 0 | | | | | | | | | Restricted stock units and other contingently issuable shares | 2 | | | 0 | | | 123 | | | Number of shares used in per share computation | 6,922 | | | 924 | | | 6,819 | | | | | | | | | | | | | | | | | | | | | | | | | | | Diluted net income per share | $ | 2.93 | | | $ | 2.93 | | | $ | 2.93 | |
| | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | 2021 | | | Class A | | Class B | | Class C | | Basic net income per share: | | | | | | | Numerator | | | | | | | | | | | | | | | | | | | | | | | | | Allocation of undistributed earnings | $ | 34,200 | | | $ | 5,174 | | | $ | 36,659 | | | Denominator | | | | | | | Number of shares used in per share computation | 6,006 | | | 909 | | | 6,438 | | | | | | | | | | | | | | | | | | | | | Basic net income per share | $ | 5.69 | | | $ | 5.69 | | | $ | 5.69 | | | Diluted net income per share: | | | | | | | Numerator | | | | | | | Allocation of undistributed earnings for basic computation | $ | 34,200 | | | $ | 5,174 | | | $ | 36,659 | | | Reallocation of undistributed earnings as a result of conversion of Class B to Class A shares | 5,174 | | | 0 | | | 0 | | | Reallocation of undistributed earnings | (581) | | | (77) | | | 581 | | | Allocation of undistributed earnings | $ | 38,793 | | | $ | 5,097 | | | $ | 37,240 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Denominator | | | | | | | Number of shares used in basic computation | 6,006 | | | 909 | | | 6,438 | | | Weighted-average effect of dilutive securities | | | | | | | Add: | | | | | | | Conversion of Class B to Class A shares outstanding | 909 | | | 0 | | | 0 | | | | | | | | | Restricted stock units and other contingently issuable shares | 0 | | | 0 | | | 200 | | | Number of shares used in per share computation | 6,915 | | | 909 | | | 6,638 | | | | | | | | | | | | | | | | | | | | | | | | | | | Diluted net income per share | $ | 5.61 | | | $ | 5.61 | | | $ | 5.61 | |
| | | | | | | | | | | | | | | | | | | | Year Ended December 31, | | | 2022 | | | Class A | | Class B | | Class C | | Basic net income per share: | | | | | | | Numerator | | | | | | | Allocation of undistributed earnings | $ | 27,518 | | | $ | 4,072 | | | $ | 28,382 | | | Denominator | | | | | | | Number of shares used in per share computation | 5,994 | | | 887 | | | 6,182 | | | | | | | | | | | | | | | | | | | | | Basic net income per share | $ | 4.59 | | | $ | 4.59 | | | $ | 4.59 | | | Diluted net income per share: | | | | | | | Numerator | | | | | | | | | | | | | Allocation of undistributed earnings for basic computation | $ | 27,518 | | | $ | 4,072 | | | $ | 28,382 | | | | | | | | | | | | | | | Reallocation of undistributed earnings as a result of conversion of Class B to Class A shares | 4,072 | | | 0 | | | 0 | | | Reallocation of undistributed earnings | (230) | | | (30) | | | 230 | | | Allocation of undistributed earnings | $ | 31,360 | | | $ | 4,042 | | | $ | 28,612 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Denominator | | | | | | | Number of shares used in basic computation | 5,994 | | | 887 | | | 6,182 | | | Weighted-average effect of dilutive securities | | | | | | | Add: | | | | | | | Conversion of Class B to Class A shares outstanding | 887 | | | 0 | | | 0 | | | | | | | | | Restricted stock units and other contingently issuable shares | 0 | | | 0 | | | 96 | | | Number of shares used in per share computation | 6,881 | | | 887 | | | 6,278 | | | | | | | | | | | | | | | | | | | | | | | | | | | Diluted net income per share | $ | 4.56 | | | $ | 4.56 | | | $ | 4.56 | |
|