what is it

period was due july 25th i got a positive hpt but wasnt getting darker.. today august 4th i started bleeding... is this a chemical or miscarriage?