Mark battens from the same edge
On a 100-inch wall, four clear bays need five full battens if both ends have one. Five battens at five inches each occupy 25 inches. Divide the remaining 75 inches into four gaps of 18.75 inches. Mark the left edges at 0, 23.75, 47.5, 71.25 and 95 inches. Measure each mark from the starting edge to avoid accumulating a rounded fraction. Board and Batten Calculator
Leave equal gaps at the fence posts
Pickets use a different edge convention. A 96-inch opening with 16 four-inch pickets has 32 inches left. There are seventeen spaces when the ends have gaps too, so each gap is 32/17 inches. The first picket starts one gap from the post. Use the applicable local spacing requirements for your project. Fence Picket Calculator
Count coverage by face
A 40 by 10 foot wall is 400 square feet. A triangular gable 20 feet wide and 6 feet tall adds 60 square feet. Subtract a 20-square-foot opening once to get 440 square feet. With ten percent waste, order for 484 square feet. Divide by the coverage printed on your carton and round up to whole cartons. Siding Calculator