It's such a nightmare. And if you don't get it right the US government will come after you - and the have the international treaty agreements in place where most national governments will shaft you on behalf of the IRS, because of another relevant aspect of US culture:
https://www.irs.gov/pub/irs-drop/rp-14-38.pdf, from the IRS.
Then lets say you're a company in... Germany
https://www.internationaltaxreview.com/article/b1f7nd0q58rfh...
It's such a nightmare. And if you don't get it right the US government will come after you - and the have the international treaty agreements in place where most national governments will shaft you on behalf of the IRS, because of another relevant aspect of US culture:
https://nationalinterest.org/sites/default/files/main_images...