Paste this where you want the calculator to appear. It works on any site — WordPress, Squarespace, Webflow, Ghost or plain HTML — and needs no JavaScript of yours. It carries a link back here, which is the only thing we ask for it.
The window can be empty — and knowing that beats an optimum that does not exist.
Operating Window Width
—units
Feasible band satisfying both specifications; negative means none exists
Window & Optimum
Lower Bound
—units
Upper Bound
—units
Midpoint Setting
—units
Strength at Optimum
—N
Shrinkage at Optimum
—%
Tightest Margin
—%
Both responses are modelled as linear in one factor, which is a first-order approximation of a genuine response surface — real optima are usually curved and a linear fit extrapolated beyond the data that produced it is not a prediction. Fit the coefficients from a designed experiment across the range you intend to run, and treat the window as provisional until confirmed by a trial at the midpoint. A window narrower than the process can actually hold is the same as no window at all: compare the width against the standard deviation of the factor in production before believing it. A single midpoint also ignores which margin is more expensive to lose.
Using this calculator
About the Response Surface Operating Window Optimizer
The formula
This is the expression the tool evaluates. Every term is named underneath, with the unit it must be supplied in.
Each input feeds the expression evaluated in the browser; the symbol table below names every term and its unit.
Symbols used above
Symbol
Stands for
Unit
factorLow
Factor Minimum
units
factorHigh
Factor Maximum
units
strengthIntercept
Strength Intercept
N
strengthSlope
Strength Slope
N/unit
strengthMin
Minimum Strength
N
shrinkageIntercept
Shrinkage Intercept
%
shrinkageSlope
Shrinkage Slope
%/unit
shrinkageMax
Maximum Shrinkage
%
operatingWindow
Operating Window Width
units
lowerBound
Lower Bound
units
upperBound
Upper Bound
units
optimumSetting
Midpoint Setting
units
strengthAtOptimum
Strength at Optimum
N
shrinkageAtOptimum
Shrinkage at Optimum
%
tightestMargin
Tightest Margin
%
How the result is derived
Step by step, from the values you type to the figure on screen.
The 8 inputs are read from the form on every keystroke: Factor Minimum, Factor Maximum, Strength Intercept, Strength Slope, Minimum Strength, Shrinkage Intercept, Shrinkage Slope and Maximum Shrinkage.
Each value is checked against the accepted range in the input table below. A value outside its range stops the calculation rather than producing a misleading figure — the results blank out and a message appears.
The validated values are substituted into the expression above, which resolves Operating Window Width together with every supporting figure in one pass — no value is carried over from a previous entry.
The supporting outputs — Lower Bound, Upper Bound, Midpoint Setting, Strength at Optimum, Shrinkage at Optimum and Tightest Margin — come from the same pass, so they always describe the same case as the headline figure.
Results are rounded for display only. The full-precision value is used throughout the chain, so reading a rounded intermediate figure back into the tool by hand can shift the last digit.
What each input means
Where to read each value on the floor, the unit it must be in, and the range the tool accepts.
Input
Unit
Accepted range
Default
What it means
Factor Minimum
units
0 to 500 units
100
Factor Maximum
units
0 to 500 units
180
Strength Intercept
N
0 to 5000 N
520
Strength Slope
N/unit
-20 to 20 N/unit
-0.85
Minimum Strength
N
0 to 5000 N
390
Shrinkage Intercept
%
0 to 50 %
9.5
Shrinkage Slope
%/unit
-2 to 2 %/unit
-0.045
Maximum Shrinkage
%
0 to 30 %
3
What the tool returns
The headline figure and every supporting value it is built from.
Output
Unit
What it tells you
Operating Window Width (headline result)
units
Feasible band satisfying both specifications; negative means none exists
Lower Bound
units
Upper Bound
units
Midpoint Setting
units
Strength at Optimum
N
Shrinkage at Optimum
%
Tightest Margin
%
Worked example
Given
Factor Minimum
100 units
Factor Maximum
180 units
Strength Intercept
520 N
Strength Slope
-0.85 N/unit
Minimum Strength
390 N
Shrinkage Intercept
9.5 %
Shrinkage Slope
-0.045 %/unit
Maximum Shrinkage
3 %
The tool loads with this case already solved — the Operating Window Width shown above is its answer. Change one value and the difference from this baseline is the sensitivity of the result to that variable.
How to use it
Work through the input groups in order — Factor Range and Response Models. The defaults are a realistic case, so you can change one value at a time and watch what moves.
There is no calculate button. Every figure recalculates as you type or drag, which is what makes this usable for a what-if sweep rather than a single answer.
Read Operating Window Width in the dark results panel — that is the headline figure, expressed in units.
Check the supporting rows underneath (Lower Bound, Upper Bound, Midpoint Setting, Strength at Optimum, Shrinkage at Optimum and Tightest Margin) before acting on the headline — they are where an implausible input usually shows itself first.
Reset to defaults returns every field to the reference case, which is the quickest way to check whether a surprising result came from the tool or from an input you had changed earlier.
Where this is used
Process planning — establishing Operating Window Width before a trial is booked, so machine time and material in Product Engineering, Specifications & Feasibility are committed against a calculated figure rather than an estimate.
Costing and quotation — Operating Window Width is an input to the cost sheet, and quoting from a worked number rather than a remembered one is what keeps a margin intact.
Troubleshooting — when the floor result drifts from plan, entering the measured values (starting with Factor Minimum) shows how much of the gap in Operating Window Width each variable explains.
Teaching and study — the accepted ranges bracket normal Product Engineering, Specifications & Feasibility practice, so moving one variable at a time shows the shape of the relationship rather than a single answer.
Assumptions and limits
Both responses are modelled as linear in one factor, which is a first-order approximation of a genuine response surface — real optima are usually curved and a linear fit extrapolated beyond the data that produced it is not a prediction. Fit the coefficients from a designed experiment across the range you intend to run, and treat the window as provisional until confirmed by a trial at the midpoint. A window narrower than the process can actually hold is the same as no window at all: compare the width against the standard deviation of the factor in production before believing it. A single midpoint also ignores which margin is more expensive to lose.
Every input is bounded to the range normal practice occupies (Factor Minimum 0 to 500 units, Factor Maximum 0 to 500 units and Strength Intercept 0 to 5000 N, and so on for the rest). Those bounds are guard rails against typing errors, not a claim that the formula fails one unit outside them.
The calculation is deterministic: the same inputs always give the same result. It carries no allowance for machine condition, operator skill, ambient conditions or lot-to-lot material variation unless an input above explicitly represents one.
Nothing is sent anywhere. The maths runs in your browser, so the numbers you type never leave the page.
Questions people ask
What do I need to know before using the Response Surface Operating Window Optimizer?
Have these to hand: Factor Minimum, Factor Maximum, Strength Intercept, Strength Slope, Minimum Strength, Shrinkage Intercept, Shrinkage Slope and Maximum Shrinkage. With those entered, the tool returns Operating Window Width immediately.
What exactly is Operating Window Width?
Feasible band satisfying both specifications; negative means none exists. It is reported in units. It is derived from Factor Minimum, Factor Maximum, Strength Intercept, Strength Slope, Minimum Strength, Shrinkage Intercept, Shrinkage Slope and Maximum Shrinkage, and is the figure the rest of the Product Engineering, Specifications & Feasibility calculation is built around.
Which units does this calculator expect?
Enter Factor Minimum in units, Factor Maximum in units, Strength Intercept in N, Strength Slope in N/unit, Minimum Strength in N, Shrinkage Intercept in %, Shrinkage Slope in %/unit and Maximum Shrinkage in %. Mixing unit systems is the most common cause of a result that looks an order of magnitude wrong — convert before typing, not after reading.
What are the other figures under the main result?
They are the intermediate quantities the calculation passes through: Lower Bound, Upper Bound, Midpoint Setting, Strength at Optimum, Shrinkage at Optimum and Tightest Margin. They are shown because a headline number nobody can trace is a number nobody trusts — checking them against your own expectation is the fastest way to confirm the inputs were read as you intended.
Can I rely on this for a production decision?
Both responses are modelled as linear in one factor, which is a first-order approximation of a genuine response surface — real optima are usually curved and a linear fit extrapolated beyond the data that produced it is not a prediction. Fit the coefficients from a designed experiment across the range you intend to run, and treat the window as provisional until confirmed by a trial at the midpoint. A window narrower than the process can actually hold is the same as no window at all: compare the width against the standard deviation of the factor in production before believing it. A single midpoint also ignores which margin is more expensive to lose. Treat the output as an engineering estimate that narrows the trial window, not as a substitute for the trial.