The formula
Battens at each end and equal spaces between: take the batten width off the wall width, divide by the spacing you want, round up, and add one. Number of battens = ⌈(wall width - batten width) ÷ spacing⌉ + 1. The actual centres are then (wall width - batten width) ÷ the number of spaces.