Pregnancy test

When it the best time to take said test? Just wondering I want it to be the most accurate it can be