what to do for periods to come on time or not came?

How do I avoid pregnancy while sex without precaution?

Sex without precaution is always risky. If periods are not regular then better consult doctor for diagnosis.