Skip to content

Main content

Herbal Material Foreign Matter Mass Share Tool

Calculate herbal material foreign matter mass share from explicit caller-supplied inputs.

Loading tool…

Description

Return netSample, foreignFraction=foreignMass/netSample, and cleanMass=netSample-foreignMass.

Botanical laboratory records distinguish wet mass, dry matter, carriers, extract mass, and assay response. A fraction or reference comparison depends on the chosen material basis and supplied analytical method. Voucher and monograph metadata help identify records but do not themselves authenticate a specimen or establish product quality.

Return netSample, foreignFraction=foreignMass/netSample, and cleanMass=netSample-foreignMass.

When to use this tool

Use Herbal Material Foreign Matter Mass Share when you need this mass-basis, assay-response, extraction, or source-record calculation for supplied laboratory data.

How to use the tool and how it works

  1. Enter sampleMass, foreignMass, excludedPackaging. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read netSample, foreignFraction, cleanMass. Use the output convention below.

Require positive sampleMass-excludedPackaging, nonnegative packaging and foreignMass within the net sample. Return netSample, foreignFraction=foreignMass/netSample, and cleanMass=netSample-foreignMass.1

Input fieldMeaning and unitsAccepted input
sampleMassPositive sample mass in the common mass unit.Required. Finite number.
foreignMassForeign MassRequired. Finite number; minimum 0.
excludedPackagingExcluded PackagingRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
netSampleNet SampleRequired. Finite number.
foreignFractionForeign FractionRequired. Finite number.
cleanMassClean MassRequired. Finite number.
json
{
  "input": {
    "sampleMass": 100,
    "foreignMass": 4,
    "excludedPackaging": 10
  },
  "output": {
    "netSample": 90,
    "foreignFraction": 0.044444444444444446,
    "cleanMass": 86
  }
}

Limitations and assumptions

  • Masses need one unit. Foreign matter classification is supplied and the remaining mass is not thereby authenticated, contaminant-free, safe, or pharmacopeially compliant.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.

Alternative or Complementary methods

Use the appropriate authenticated reference material, analytical protocol, and source records for a full laboratory assessment. Verify moisture basis, response factors, and extract/carrier definitions before comparing results.

References

  1. Calculation and input contract: pharmacognosy/herbal-material-foreign-matter-mass-share — tool.io

Similar or alternative tools

  • Herbal Extractive Dry Mass Yield Term

    For positive airDryInput, moistureFraction in [0,1), and nonnegative recoveredSolids return dryInput=airDryInput*(1-moistureFraction), yieldFraction=recoveredSolids/dryInput, and airDryYield=recoveredSolids/airDryInput.

  • Botanical Extract Carrier Mass Deduction

    For nonnegative finishedMass, carrierFraction, and waterFraction with sum<=1 and nonnegative declaredNativeMass return nativeMass=finishedMass*(1-carrierFraction-waterFraction), carrierMass=finishedMass*carrierFraction, and nativeDiscrepancy=nativeMass-declaredNativeMass.