pregnancy test

How early can you take a test ? A week before missed period or just 3 days before missed period ? Or should I just wait till I miss my period ?