how do you calculate the formula weight for compounds of the formula [Cu(NH3)x)]SO4.H20 where x= 1-6?

Say x = 4

Cu + 4N + 12H + 1S + 4O + 2H + O