Menu

Our winery cost calculator quoted a quarter of the real price. The catalogue next to it knew better.
πŸ“°

Our winery cost calculator quoted a quarter of the real price. The catalogue next to it knew better.

DEV Community: reactΒ·AlonDrilichΒ·about 1 hour ago
#oD1RssBo
#devtoreact#devto#dev#stage#automatic
Reading 0:00
15s threshold

wine.equipment is a catalogue of winery equipment: crushers, presses, tanks, filters, bottling lines. It also has a cost calculator . You pick how many cases a year you make, the wine type and how automated you want to be, and it gives you a budget range per production stage.

The calculator was wrong, and the page itself showed it. Below each stage's estimate it printed what listings on the site actually cost. The two numbers sat a few pixels apart and disagreed.

The rule of thumb

The estimate was a per-case rule. Each stage has a dollar-per-case range, and the result is scaled for wine type and automation:

const STAGES = [ { stage : "grape-processing" , rate : [ 8 , 15 ] } , { stage : "fermentation" , rate : [ 12 , 25 ] } , { stage : "pressing" , rate : [ 6 , 18 ] } , { stage : "wine-transfer" , rate : [ 4 , 10 ] } , { stage : "filtration" , rate : [ 3 , 8 ] } , { stage : "bottling" , rate : [ 5 , 15 ] } , ] ;

const autoMult = automation === "manual" ? 0.6 : automation === "semi-automatic" ?…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.