Expand description
Kitchen remodeling cost planner.
Split a kitchen remodel budget by line item, then add sales tax, a contingency reserve and a permit allowance. All arithmetic is done in integer cents so totals match to the cent.
use kitchen_remodeling_cost::{estimate, Options};
let r = estimate(60000.0, &Options { permit: 1500.0, ..Options::default() }).unwrap();
assert_eq!(r.total, 74298.0);More kitchen remodel planning: Kitchen Remodeling Bellevue
Structs§
- Breakdown
- Error
- Errors for invalid input.
- Line
- Options
- Calculation options.
- Preset
- A Cost vs Value preset (Pacific region averages).
Constants§
- DEFAULT_
CONTINGENCY_ RATE - DEFAULT_
TAX_ RATE - LINE_
ITEMS - A default line item: key, label, share of the construction budget.
- PRESETS
- PRESET_
SOURCE - SHARE_
SOURCE
Functions§
- estimate
- Forward estimate from a construction (pre-tax) cost.
- estimate_
preset - Estimate a preset.
permit=Nonekeeps the preset allowance. - format_
table - Plain-text itemised table.
- money
$12,345.67- normalise_
shares - Defaults merged with overrides, normalised to sum to 1.
- preset
- Look up a preset by key.
- split_
budget - Split an all-in budget (tax, reserve and permits included) into line items.