How many days?

How many days before period should i take a pregnancy test?