Pregnancy test

How soon before my missed period can I take a test ?