pre_hazard smooth calculation