Missed period

I will be going on 4 days since I have missed my period, when should I take a pregnancy test