When to test?

When is the earliest I can take a pregnancy test?