When should I take pregnancy test?

Kandi
I was told it's better to take a test right before your period is due. Mine is supposed to start Wednesday, the 24th. Can I go ahead and take one or wait..?