Its not clear as to when are you having your periods, how irregular it is and if there are other issues.
Usually a seven days plus or minus gap is acceptable.
Stress and inadequate sleep are very notorious in causing it as well.
Endocrinology disorders do cause irregular periods as well.
Next Steps
Nevertheless you should consult a gynaecology specialist and get yourself evaluated.