Condition based maintenance using proportional hazards model