what is the formula for debt capacity