Forecasting Aftershock Activity: 5. Estimating the Duration of a Hazardous Period