Pregnancy Testing

When is the right time to take a pregnancy test? How do I know if it's too soon?