Estimating fence panels between posts at 30mm with an allowance for the post width the 40 posts would make up 39 panels, a total fence length of approx 1248mm, plus gates etc.�Your actual results will depend on the layout/shape and positional requirements of your fence.