Period goes away and comes back

Jordan
Okay so I have an irregular period. I will get it 2 weeks after It ended. Or it will come and go in the same week. For example, I started my period on the 31st of last month and it literally stopped friday night and I didnt been again until today and its now Sunday. Can someone explain? Im kind of freaking out.