modify formulas to calculat damage of faciliy