HowMuchWorks Calculators

Description

HowMuchWorks Calculators adds five material and volume estimators to your site, each as its own block and as a shortcode. They are made for the websites of landscapers, fencing and roofing contractors, tilers, pool companies and aquarium shops: your visitors get a quick estimate, and you get a useful page that keeps them on your site.

Calculators

  • Tile Calculator – tiles and boxes for a floor or wall, from the area, the measured tile size, the grout joint and a waste allowance. For plain rectangles it also counts a grid laid from one corner, so narrow strips are not under-ordered. Openings such as doors and windows can be left out.
  • Roofing Calculator – sloped roof area from the house footprint, eave overhang and pitch, then shingle bundles (using the coverage printed on the wrapper) and underlayment rolls, with two layers on low slopes. Below a 2/12 pitch it says that asphalt shingles are not suitable.
  • Fence Calculator – posts, rails, pickets or ready-made panels and concrete bags for one straight fence line, with gates at the end or in the middle of the line.
  • Pool Volume Calculator – gallons and liters for rectangular, round, oval, elliptical and kidney-shaped pools, with a flat or sloped bottom.
  • Fish Tank Calculator – water volume and water weight of rectangular, cube, cylinder and bow-front aquariums.

Every calculator works in imperial or metric units, and visitors can switch units at any time: the sizes they already entered are converted.

Block settings

  • Default units (imperial or metric)
  • Accent colour for the button and the result box (optional)
  • Heading and intro text above the calculator (optional)
  • A small credit link to howmuchworks.com under the calculator. It is off by default and only appears if you turn it on.

Shortcode for the classic editor and page builders

[howmuchworks_calculator type="tile"]

Types: tile, roofing, fence, pool, fish-tank. Optional attributes: units="metric", accent="#1e5fa8", heading="Tile estimate", intro="Enter your room size.", credit="yes".

Privacy

All calculations run in the visitor’s browser. The plugin makes no requests to any other server, loads no external fonts or scripts, sets no cookies, adds no tracking or analytics, and stores nothing in your database. What visitors type stays in their browser.

Disclaimer

Each calculator shows a short note under the result: estimates are for planning only, are not professional advice and carry no guarantee of accuracy. Check quantities with your supplier or installer before ordering.

The calculators are the same ones that run on howmuchworks.com. More free calculators at howmuchworks.com.

Source code

The plugin ships with its uncompressed source in the src folder and its tests in the tests folder. The files in build are generated from src with @wordpress/scripts:

  1. npm install
  2. npm run build (writes build/)
  3. npm test (runs the calculation tests with the Node.js test runner)

Screenshots

Blocks

This plugin provides 5 blocks.

  • Roofing Calculator Lets visitors estimate roof area, shingle bundles and underlayment rolls from the house footprint and pitch.
  • Tile Calculator Lets visitors work out how many tiles and boxes they need for a floor or wall.
  • Fence Calculator Lets visitors estimate fence posts, rails, pickets or panels and concrete bags for a fence line with gates.
  • Pool Volume Calculator Lets visitors estimate how many gallons or liters a pool holds, for rectangular, round, oval and kidney pools.
  • Fish Tank Calculator Lets visitors work out the water volume and weight of an aquarium, including bow-front tanks.

Installation

  1. In your WordPress admin, go to Plugins > Add New, search for “HowMuchWorks Calculators”, then click Install Now and Activate. Or upload the howmuchworks-calculators folder to /wp-content/plugins/ and activate it on the Plugins screen.
  2. Edit a page, click the + (block inserter) and search for “calculator”. Pick Tile Calculator, Roofing Calculator, Fence Calculator, Pool Volume Calculator or Fish Tank Calculator.
  3. Set the default units, an optional heading, intro text and accent colour in the block settings sidebar.
  4. In the classic editor, use the shortcode instead, for example [howmuchworks_calculator type="roofing" units="imperial"].

FAQ

Does the plugin send any data anywhere?

No. The calculations run in the visitor’s browser with JavaScript that is part of the plugin. There are no requests to howmuchworks.com or to any other server, no cookies and no analytics.

Is there a paid version or a locked feature?

No. Every calculator and every setting is free.

How accurate are the results?

They are estimates for planning. Each calculator explains its assumptions under the result (for example, a roof with one pitch on every plane, or one straight fence line). Real jobs vary: check the quantities with your supplier or installer before ordering.

Can I show several calculators on one page?

Yes. Add as many blocks or shortcodes as you like, including several of the same type with different settings.

Can I use it without the block editor?

Yes. Use the shortcode with the calculator type, for example [howmuchworks_calculator type="tile"], in the classic editor, a classic widget or a page builder’s shortcode element. The types and the other options are listed in the description above.

Will it match my theme?

The calculators use your theme’s font and text colour. You can set an accent colour for the button and the result box. Everything is styled under the .hmw-calc class if you want to adjust it with custom CSS.

Does it work without JavaScript?

No. The calculations run in the browser, so visitors with JavaScript turned off see a short note instead.

Can the plugin be translated?

Yes. All text, including the calculator labels and results, is ready for translation with the text domain howmuchworks-calculators. Numbers are formatted in your site language.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“HowMuchWorks Calculators” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • First release: Tile, Roofing, Fence, Pool Volume and Fish Tank calculator blocks and the [howmuchworks_calculator] shortcode.