When is the best time to take a pregnancy test?

Starr

I took one during the time I was supposed to have my period and it came up negative. But that I looked online and it says you should take it around a week after your missed period! So now I'm waiting to take my second test, but I'd like to know how long to wait. Any ideas?