hazard_calculation