Trying to get pregnant

Emee
Hi there, I was wondering when do I have to take the pregnancy test? Like before how many days before period due!?