Calculation of the fence
The program calculates the number of pillars needed to install the fence.
Just calculated the distances between the pillars and calculated the amount of material the fence: wire mesh, boards or sheet material.
To find out the cost of construction materials used, list their prices in retail stores in your area.
Unless noted "optimize the distance between the posts
", the program will evenly distribute the columns of the fence on each side of the plot and adjust the distance between them.
Notice that the columns of the gate is already included in the calculation.