Optimal inflation targeting rule under positive hazard functions for price changes