How to check this calculation
Formula & conventions
Length includes both end posts. We divide it into bays from the chosen maximum spacing, deduct posts and place pickets with equal gaps including the ends. The target gap is a geometric maximum, not a construction rule.
Position origin: left edge or base indicated in the drawing.