You missed the 4:1 split in August 2020. If the rest of the calculation is correct, the value of those 18 millions stock would be almost 500 billions
However, accounting for that last 4:1 split, Microsoft's 18.1 million shares would now be 72.4 million shares at the last closing price of $165.35.