Pill and implant

I’m 17 and have been with my boyfriend nearly 2 years now. I’ve had the implant for a year. I’ve been having sex with him sometimes with a condom and without, I usually double up with the pill when I know we haven’t got any, how long before my scheduled period (actual bleeding) do I need to take the pill?