how to calculate fence material