How the count is built
Seven fields drive everything: room length and width in feet, a waste percentage, box coverage in square feet, price per box, and plank width and length in inches. Each one recalculates on every keystroke. Floor area is length times width. The waste figure scales that up, boxes round up from the enlarged area divided by box coverage, and total cost is boxes times the price per box. Cost per square foot divides that total by the bare room area, not the waste area.
A worked example
The shipped defaults are a 12 by 15 foot room, 10% waste, 20 square foot boxes at $69.80, and 6 by 48 inch planks. Area is 180 sq ft, waste area is 198 sq ft, and 198 divided by 20 is 9.9, so the page orders 10 boxes for $698.00 and prints $3.88 per sq ft, from 698 over the bare 180. The plank row count is 15 times 12 divided by 6, exactly 30 rows, and boards per row is the perimeter figure, 12 plus 15, times 12, divided by 48, rounded up to 7, plus 1 for the end cut, giving 8.
The plank cross-check
Rows come from converting the room width to inches and dividing by plank width. Boards per row uses the sum of length and width, which counts the boards laid along a row plus the offcut that caps it, matching the note under the layout panel. The steps block repeats the whole chain with the live numbers after every change.
Where it stops
- Only feet and inches exist; there is no metric mode, so measure with the length converter first if your plan is drawn in metres.
- Waste is clamped at zero in the script, but the field's 50 percent ceiling is only an HTML attribute, so a typed 80 still computes.
- The room is a single rectangle; alcoves, doorways and closets are never subtracted, and the layout assumes rows run along the longer wall.
- A zero plank width or length shows zero rows instead of a warning, because only the room size and box coverage are treated as required.
Questions people ask
Why ten boxes when I need 198 square feet?
Nine boxes cover only 180, which is short, so the count rounds up to ten and you pay for 200 square feet of material.
Do I order by boxes or by planks?
By boxes. The caption under the results states that shops sell whole boxes, and the plank counts exist to show how much cutting each row needs.
For hard surfaces the tile calculator works the same room with grout coverage, and the area converter handles plans given in square metres.