concrete-ops
Compute concrete yardage and quotes — feed slab length, width, and depth in inches to get cubic yards with 10% waste (rounded up to the quarter yard, with 80lb bag counts for jobs under 1 yard), then apply your price per yard and labor to build the quote. Use when quoting patios, driveways, slabs, walkways, and footings.
$ skillbank install concrete-ops@1.0.0 # pins exactly 1.0.0 · README + changelog included
Concrete Ops
Overview
Concrete math is unforgiving in exactly one direction: short. Cubic yards = length x width x depth(inches)/12 / 27, plus 10% waste, rounded up to the nearest quarter yard — because the plant charges by the truck, not by your spreadsheet. Jobs under 1 yard get the 80lb bag count instead (one bag yields 0.6 cubic ft), since hauling a mixer for a quarter yard is how you lose money. Add your ready-mix price per yard and a flat labor charge and it builds the quote.
Everything runs on your own machine. The script reads your numbers and prints the result — nothing is uploaded anywhere.
Installation
1. Copy the concrete-ops/ directory anywhere convenient. 2. Make the script executable (Unix):
chmod +x scripts/yardage.py
No pip install needed — standard library only.
Configuration
There is no config file. The fixed rules:
- Volume: L(ft) x W(ft) x D(in)/12 / 27 = cubic yards.
- Waste: x1.10, then rounded UP to the nearest 0.25 yard for ordering.
- Bag math: 1 eighty-pound bag = 0.6 cu ft; shown whenever the job is
- Quote:
billed yards x --price-per-yard + --labor.
under 1 yard after waste.
--price-per-yard and --labor are optional — without them you get the yardage and bag count alone, which is fine for planning the pour before you talk money.
Inputs
| Input | Required | Description | |--------------------|----------|----------------------------------------------| | length | yes | Slab length in feet. | | width | yes | Slab width in feet. | | depth | yes | Slab depth in inches (e.g. 4). | | --price-per-yard | no | Ready-mix price per cubic yard ($). | | --labor | no | Flat labor charge in dollars (default: 0). |
Worked example
A 24 x 12 ft patio, 4 inches thick, at $165/yard with $850 labor:
$ ./scripts/yardage.py 24 12 4 --price-per-yard 165 --labor 850
Concrete yardage - 24 ft x 12 ft x 4 in
volume : 3.56 cu yd (96.0 cu ft)
with 10% waste : 3.91 cu yd
order : 4.00 cu yd
materials : $660.00 (4.00 yd @ $165.00/yd)
labor : $850.00
total quote : $1,510.00
24 x 12 x (4/12) = 96 cu ft = 3.56 yards; x1.10 = 3.91, rounded up to 4.00 for the order. Materials $660 + labor $850 = $1,510.
A small 4 x 4 ft pad (under 1 yard) shows the bag option:
$ ./scripts/yardage.py 4 4 4
Concrete yardage - 4 ft x 4 ft x 4 in
volume : 0.20 cu yd (5.3 cu ft)
with 10% waste : 0.22 cu yd
order : 0.25 cu yd
bag option : 10 x 80lb bags (yields 0.6 cu ft each)
Playbooks
- Prep and cure — base prep, weather
calls, and the curing steps that keep a quoted slab from becoming a callback.
Safety notes
This is a benign business tool. Your measurements and pricing stay on your machine; the script makes no network calls and never uploads anything. Check the weather before you book the truck — rain on a fresh pour costs more than the yardage.
Version history
Changelog
1.0.0 — 2026-09-27
- Initial release:
scripts/yardage.pycomputes concrete cubic yards with 10% waste (rounded up to the quarter yard), 80lb bag counts for sub-1-yard jobs, and an optional $/yard + labor quote, plus a prep-and-cure playbook.