How to calculate
Round each uninterrupted run up to a whole number of bays. Count both end posts for each run, then subtract duplicated corner posts.
Worked example
Use Uninterrupted fence runs in feet, one per line 60 / 35 · Maximum bay or panel spacing (ft) 8 · Shared corner posts counted twice 1 · Separate rails per bay (0 for prebuilt panels) 3 · Cost per post (USD) 20 · Cost per bay or panel (USD) 50 · Fixed extras and gates (USD) 165. The result is ≈ 1095 USD.
Input and result notes
Split the fence at gates and changes of direction. Enter only shared posts that are already counted on two neighboring runs.
Home Depot fence installation guide