When do i test?

When should a test come out positive? I see women test before period and see a positive or how many day after period should a test be more accurate? Or certain positive?