Calculation of the safe period for women