How to calculate optimum replacement interval