I am a Canadian with US permanent residency. I will be going back to Canada before living in USA full 10 years. Also, my full time employment will end 4 credits short of the required 40 to qualify for US SS benefit but I will have part of my bonus paid the following year which should give me the amount needed to earn 4 credits. My green card expires end of July that same year part of my bonus will be paid out. My question is whether I need to be US permanent resident when I receive the bonus in order for this amount to count as 4 credits. If the answer is yes do I need to be a resident for the whole year or can I just let my green card expire mid-year. Please assume that I don’t have enough years of earnings in the Canadian system for Totalization Agreement to help me qualify for the US SS benefit.