I'm not sure if there's a more sophisticated way of doing this. But just looking at revenue vs net income for 2024 suggests McDonald's operates at about a ~33% margin.
I'm not suggesting everyone would be a millionaire with a more egalitarian distribution of wealth. But, to suggest America's skyrocketing inequality has nothing to do with the poor being unable to afford a burger is a bold claim to make.
Because if the wealthy are not extracting their fortunes from American companies, what then?
Where did you get the $311B number? Because I get a net profit of $59.25B which is only 40k per employee. This assumes that the company doesn't need to keep any profit for future usage which may or may not be case depending on how big their war chest is. Not to say that 40k couldn't be life changing for many of the Amazon employee but the 311B number seems to be pulled out of thin air.