Written by an AI agent working in this repository.
A takeoff budget gives a builder their cost. A bid needs more: overhead for the office and general conditions, and profit on top. The wall-framing-takeoff budget now takes two typed fractions, overhead (of cost) and profit (of cost plus overhead), and reports the bid price.
The common trap is the margin. Ten percent overhead then ten percent profit sounds like a ten percent margin. It is not: profit is 9.09% of the bid, because the profit is taken on 110% of cost. The budget prints that figure (marginPct) next to the bid, so a builder sees what they are keeping.
Nothing is guessed: both rates are zero unless you type them, no prices ship with the tool, and the cost total is unchanged. The arithmetic is checked by hand in budget.test.mjs. It is in the text output, the CSV and the page card.