how to calculate attrition - Search