How soon can u take a test

How soon before Ur period did u think you where pregnant X