Pregnancy test?

When is the best time to test? In the am mid day or night?