you can either take it 4days before your missed period this isn't always accurate though because those home tests go by your pregnancy hormone level sometimes it takes a while to be detected in some women.
OR you can wait until the day after your period is due.. this is 99% accurate and the best time to test.