Help!!!!

I have been on my period for more than 2 weeks, when am I supposed to start the pills? My doctor said I’m supposed to start them on a Sunday after my period starts but I’ve been on my period for a while now since i was on the shot and it caused irregular periods. What do I do?