Urgent.News

What's breaking now, across thousands of outlets.

Tech

The 10 percent that bought nothing: what a flooring calculator should actually tell you

Wall Math is a set of three small calculators: paint, wallpaper, flooring. The flooring one is the simplest arithmetic on the site and the one that taught me the most about what a calculator owes its user. The whole engine function is nine lines. Here is the part that matters: const requiredArea = area * ( 1 + extra / 100 ); const boxes = Math . ceil ( requiredArea / perBox ); return { area ,…

Wall Math offers three simple calculators for paint, wallpaper, and flooring, with the flooring calculator providing valuable insights. The flooring calculator computes required area, including an allowance for cuts and mistakes, and determines how many boxes of flooring are needed, rounding up. Two factors contribute to the amount of flooring purchased: allowance for cuts/mistakes, which varies by user decision, and fixed carton sizes, which cannot be altered.

Most calculators combine these factors into a single "boxes needed" figure, but Wall Math separates them into two distinct values: excessArea and roundingExtra. The excessArea represents the total extra flooring purchased beyond the measured floor area, while the roundingExtra indicates the portion of excessArea that could not be avoided due to carton size restrictions.

Using a 12-by-15 foot living room example with three different vinyl plank products, the calculator demonstrates that a 10 percent allowance does not always result in purchasing an additional carton. In some cases, the allowance leads to buying the exact number of cartons needed, while in other cases, it results in purchasing one extra carton.

By separating the excessArea and roundingExtra values, Wall Math provides users with a clearer understanding of the impact of allowance on their flooring purchase, enabling them to make more informed decisions before heading to the store.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Hi everyone have a Question!

I built a video downloader using React + Node.js. Can it be hosted for free and kept live? If not, which paid hosting/VPS would you recommend for this type of Web app?

More from Wednesday 16 September →