When is the best time to do a pregnancy test?

Michelle • Had a miscarriage on July 1st 2014, October 2014!
When?