RhoGAM shot

So this is my second pregnancy I am 5 weeks and 5 days... my first pregnancy I miscarried and was given the shot right after... how soon do I need to get the shot now?