how many days before periods can i do pregnancy test

it is better to wait till one week after a missed period, otherwise there is a good chance for getting a false negative. hcg levels may not be enough in urine before that. you could test positive on 4 to 5 days after missed period as well...

Appropriate HCG level is required to get a good and appropriate result. It is advisable to wait for few days.