Social security tax non-residents
Hi, I worked on an H1 visa in the US for 6 years, and moved back to India after that. Due to the sale of stock grants/dividends etc. (that were received when I was in the US), I continue to have some 'US income' and owe some US tax (federal/state + Soc Security/medicare). In effect, I have paid these taxes over the last couple of years, though I was not working in the US.
I would like to know if this income and consequent Soc security taxes contributes towards the 40 credits I need to benefit from the taxes I have paid until now.
Thanks!