Pregnancy test

When is the earliest time to take a test ??