Pregnancy test advice??

Rh
How many days before or after your period is due is it the best time to take a pregnancy test