Best time to test?

When is the best time to take a test? I think I am pregnant because my bf didn't pull out in time doing my fertile week that I recorded on glow. I just wanna find out the earliest time possible... Can I know before my period?? When the best time to take a test??