Methodology
Per-bay equal-spacing assumptions
Equal-gap solve
gap = (clear bay − count × baluster width) ÷ (count + 1)
Increase whole baluster count until exact gap is at or below the entered maximum.
Center pitch
baluster width + exact equal gap
Repeated center-to-center spacing inside this bay.
Field marks
first edge = gap; next edges repeat by pitch
Marks are measured from the finished left post face.
Purchase target
ceil(installed count × (1 + spare %))
Reserve is separate from installed spacing geometry.