It might be socially acceptable to put the domestic economy first, but that doesn't mean it is right. Ultimately, it's basically the same as the "looking out for #1" philosophy that rich people allegedly have, which is being condemned in this thread -- but at the rich country level rather than the rich individual level.
Try this calculator: https://howrichami.givingwhatwecan.org/how-rich-am-i