HELP PLEASE!!

So basically I came on my last period on the 27th July and it ended on the 1st of august. My apps tell me that my period should of been due on the 24th of august but it never happened. I took a pregnancy test on the 5th of September and it came back negative. Then I had pinkish discharge and severe back pains on the 7th but very late at night which made me think my period was here & now it’s gone and I’m not bleeding at all.. help??