Implantation bleeding

Pi
Can some one please clarify when implantation bleeding happens.. Is it when u r due to AF or before AF due which is around 10 days dpo??