\[ \text{number of balusters needed} = \frac{\text{railing length} - (\text{number of posts} \times \text{single post's width})}{\text{baluster width} + \text{baluster spacing}} \]