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.
One polypropylene strand survives dyeing and rejects the piece. Never read the average alone.
Composite Contamination Risk
—/100
Higher is worse. Read the polypropylene share before trusting it
Where the Risk Sits
Share of Risk from Polypropylene
—%
Share from Stickiness
—%
Colour Grade Index
—/100
Expected Downgrade
—%
Lot Value at Risk
—currency
Lot Value
—currency
The weights here are a stated convention, not a measurement: polypropylene is weighted an order of magnitude above the graded defects because its failure mode is categorical rather than proportional — it does not make the yarn slightly worse, it makes one finished piece unsellable, and it is detected after every value-adding process has already been paid for. That is why the polypropylene share is printed separately and why a lot with any PP at all should be stopped and hand-sorted whatever the composite says. Stickiness behaves differently again: it is a processing failure, not an appearance defect, and honeydew contamination that passes a visual inspection can still shut a spinning frame down through roller lapping in humid weather, so read the SCT count against your own mill humidity rather than against a trade limit. Counts depend entirely on sample size and inspector diligence — an untrained inspection reliably returns zero.
Using this calculator
About the Cotton Contamination & Colour Grade Risk Scorer
The formula
This is the expression the tool evaluates. Every term is named underneath, with the unit it must be supplied in.
Weighted contaminant loadraw = 12 x pp + 3 x sticky + 0.8 x bark + 0.35 x seedCoat
The weights are a stated convention, not a measurement. Polypropylene carries roughly fifteen times the weight of a seed-coat fragment because its failure mode is categorical rather than proportional.
Saturating map onto a 0-100 scaleriskScore = 100 x (1 - exp(-raw / 60))
Saturation keeps a very dirty lot on the scale, but it also compresses differences at the top end, which is a second reason not to read the composite alone.
Colour grade against a mid-grade upland referencegradeIndex = 100 - (75 - Rd) - 2 x (+b - 8.5)
Yellowness is weighted twice reflectance per unit, following the direction of the trade grade charts. Both reference points are conventions and should be reset to the lot type actually being bought.
Symbols used above
Symbol
Stands for
Unit
polypropyleneCount
Polypropylene Strands
count
stickinessCount
Stickiness (SCT Spots)
count
barkCount
Bark & Grass Particles
count
seedCoatCount
Seed Coat Fragments
count
reflectanceRd
Reflectance Rd
%
yellownessB
Yellowness +b
—
lotTonnes
Lot Size
t
pricePerTonne
Lint Price
currency/t
riskScore
Composite Contamination Risk
/100
polypropyleneShare
Share of Risk from Polypropylene
%
stickinessShare
Share from Stickiness
%
gradeIndex
Colour Grade Index
/100
expectedDowngrade
Expected Downgrade
%
valueAtRisk
Lot Value at Risk
currency
lotValue
Lot Value
currency
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: Polypropylene Strands, Stickiness (SCT Spots), Bark & Grass Particles, Seed Coat Fragments, Reflectance Rd, Yellowness +b, Lot Size and Lint Price.
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 Composite Contamination Risk together with every supporting figure in one pass — no value is carried over from a previous entry.
The supporting outputs — Share of Risk from Polypropylene, Share from Stickiness, Colour Grade Index, Expected Downgrade, Lot Value at Risk and Lot Value — 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
Polypropylene Strands
count
0 to 500 count
2
The one that rejects finished pieces
Stickiness (SCT Spots)
count
0 to 500 count
9
Bark & Grass Particles
count
0 to 2000 count
14
Seed Coat Fragments
count
0 to 2000 count
26
Reflectance Rd
%
40 to 90 %
72
Yellowness +b
—
4 to 18
9.4
Lot Size
t
0.1 to 10000 t
22
Lint Price
currency/t
0 to 1000000 currency/t
1850
What the tool returns
The headline figure and every supporting value it is built from.
Output
Unit
What it tells you
Composite Contamination Risk (headline result)
/100
Higher is worse. Read the polypropylene share before trusting it
Share of Risk from Polypropylene
%
Share from Stickiness
%
Colour Grade Index
/100
Expected Downgrade
%
Lot Value at Risk
currency
Lot Value
currency
Worked example
Given
Polypropylene Strands
2 count
Stickiness (SCT Spots)
9 count
Bark & Grass Particles
14 count
Seed Coat Fragments
26 count
Reflectance Rd
72 %
Yellowness +b
9.4
Lot Size
22 t
Lint Price
1850 currency/t
The tool loads with this case already solved — the Composite Contamination Risk 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 — Contaminant Counts, Colour Grade and Lot Value. 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 Composite Contamination Risk in the dark results panel — that is the headline figure, expressed in /100.
Check the supporting rows underneath (Share of Risk from Polypropylene, Share from Stickiness, Colour Grade Index, Expected Downgrade, Lot Value at Risk and Lot Value) 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 Composite Contamination Risk before a trial is booked, so machine time and material in Fiber Testing, Bale Management & Laboratory Sampling are committed against a calculated figure rather than an estimate.
Costing and quotation — Composite Contamination Risk 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 Polypropylene Strands) shows how much of the gap in Composite Contamination Risk each variable explains.
Teaching and study — the accepted ranges bracket normal Fiber Testing, Bale Management & Laboratory Sampling practice, so moving one variable at a time shows the shape of the relationship rather than a single answer.
Assumptions and limits
The weights here are a stated convention, not a measurement: polypropylene is weighted an order of magnitude above the graded defects because its failure mode is categorical rather than proportional — it does not make the yarn slightly worse, it makes one finished piece unsellable, and it is detected after every value-adding process has already been paid for. That is why the polypropylene share is printed separately and why a lot with any PP at all should be stopped and hand-sorted whatever the composite says. Stickiness behaves differently again: it is a processing failure, not an appearance defect, and honeydew contamination that passes a visual inspection can still shut a spinning frame down through roller lapping in humid weather, so read the SCT count against your own mill humidity rather than against a trade limit. Counts depend entirely on sample size and inspector diligence — an untrained inspection reliably returns zero.
Every input is bounded to the range normal practice occupies (Polypropylene Strands 0 to 500 count, Stickiness (SCT Spots) 0 to 500 count and Bark & Grass Particles 0 to 2000 count, 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 Cotton Contamination & Colour Grade Risk Scorer?
Have these to hand: Polypropylene Strands, Stickiness (SCT Spots), Bark & Grass Particles, Seed Coat Fragments, Reflectance Rd, Yellowness +b, Lot Size and Lint Price. With those entered, the tool returns Composite Contamination Risk immediately.
What exactly is Composite Contamination Risk?
Higher is worse. Read the polypropylene share before trusting it. It is reported in /100. It is derived from Polypropylene Strands, Stickiness (SCT Spots), Bark & Grass Particles, Seed Coat Fragments, Reflectance Rd, Yellowness +b, Lot Size and Lint Price, and is the figure the rest of the Fiber Testing, Bale Management & Laboratory Sampling calculation is built around.
Which units does this calculator expect?
Enter Polypropylene Strands in count, Stickiness (SCT Spots) in count, Bark & Grass Particles in count, Seed Coat Fragments in count, Reflectance Rd in %, Lot Size in t and Lint Price in currency/t. 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: Share of Risk from Polypropylene, Share from Stickiness, Colour Grade Index, Expected Downgrade, Lot Value at Risk and Lot Value. 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?
The weights here are a stated convention, not a measurement: polypropylene is weighted an order of magnitude above the graded defects because its failure mode is categorical rather than proportional — it does not make the yarn slightly worse, it makes one finished piece unsellable, and it is detected after every value-adding process has already been paid for. That is why the polypropylene share is printed separately and why a lot with any PP at all should be stopped and hand-sorted whatever the composite says. Stickiness behaves differently again: it is a processing failure, not an appearance defect, and honeydew contamination that passes a visual inspection can still shut a spinning frame down through roller lapping in humid weather, so read the SCT count against your own mill humidity rather than against a trade limit. Counts depend entirely on sample size and inspector diligence — an untrained inspection reliably returns zero. Treat the output as an engineering estimate that narrows the trial window, not as a substitute for the trial.