Version 2 — flat engineering fee (bundled into structure), removed project-management line, updated opening prices. Edit the inputs for a live quote, change CONFIG to reprice, and run the self-test to check the engine against worked examples for the current pricing.
Dimensions
Openings
Motors
Estimated total range
—
Cost breakdown
Edit prices/tiers here and click Apply. The math mechanics never change — only these values. This is the same object documented in the build spec.
These worked examples are computed from the current pricing configuration (size-banded eave premiums + per-door framing). With the default prices loaded they must all PASS — a quick guard against accidental breakage. (If you edit CONFIG, they will fail, which is expected.)
The model
Total = sum of independent line items. Two depend on geometry; the rest are flat rates or per-unit prices.
The three things that are easy to get wrong
1. Structure rate is tiered on total area and applied to the whole area (not marginal). Because a lower rate hits the entire area, price drops as area crosses 50 m² and 200 m² — real “cliffs”.
2. Subtotal = round(sum of UNROUNDED lines), not the sum of the rounded line items. With fractional areas the displayed lines may not visibly add up.
3. Wall insulation bills on wall surface area = 2×(W+L)×eaveHeight, not floor area. Roof insulation bills on floor area.
Engine does no validation (zero/negative/huge inputs just compute); quantities are integer-parsed; the motor≤doors cap is UI-only. Warranty / timeframe / intended-use never affect price.