How do i count the safe and danger days?

I need to know how to count these because i have irregular menstrual cycles.