Skip to content

Main content

Part Share After Exclusion Tool

Calculate part share after exclusion from explicit caller-supplied inputs.

Loading tool…

Description

Subtract excluded amounts from part and whole, then return their share when remainingWhole is positive, otherwise zero with defined false.

A ratio compares quantities under a stated numerator and denominator. Fractions, percentage numerals, and percentage-point changes use different conventions, and changing a part can also change its whole. Unit consistency, zero denominators, rounding, and the order of adjustments determine the result.

Subtract excluded amounts from part and whole, then return their share when remainingWhole is positive, otherwise zero with defined false.

When to use this tool

Use Part Share After Exclusion when you need this specific ratio, allocation, transformation, interval, or adjustment-order calculation with an explicit base.

How to use the tool and how it works

  1. Enter part, whole, excludedFromWhole, excludedFromPart. 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 remainingPart, remainingWhole, share, defined. Inspect defined before interpreting the associated values.

Subtract excluded amounts from part and whole, then return their share when remainingWhole is positive, otherwise zero with defined false. Require nonnegative feasible nested part and exclusion quantities.1

Input fieldMeaning and unitsAccepted input
partPartRequired. Finite number; minimum 0.
wholeWholeRequired. Finite number; minimum 0.
excludedFromWholeExcluded From WholeRequired. Finite number; minimum 0.
excludedFromPartExcluded From PartRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
remainingPartRemaining PartRequired. Finite number.
remainingWholeRemaining WholeRequired. Finite number.
shareDimensionless fraction using the stated denominator; not a percentage numeral.Required. Finite number.
definedWhether the stated denominator or quantity is defined; inspect before interpreting a placeholder.Required. Boolean.
json
{
  "input": {
    "part": 30,
    "whole": 100,
    "excludedFromWhole": 20,
    "excludedFromPart": 10
  },
  "output": {
    "remainingPart": 20,
    "remainingWhole": 80,
    "share": 0.25,
    "defined": true
  }
}

Limitations and assumptions

  • The caller supplies both exclusions and their overlap relationship. Undefined share is a placeholder; no category membership, missing-data adjustment, or appropriate denominator is independently verified.
  • The field tables state structural bounds; the mechanics also specify cross-field constraints. Malformed inputs and unsupported domains cause errors. A successful false flag, empty branch value, or zero placeholder has the meaning stated above and is distinct from an input error.
  • 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

Check numerator, denominator, units, and adjustment order before comparing results. Use a complete allocation or physical mixture model when a single arithmetic term leaves relevant constraints unspecified.

References

  1. Calculation and input contract: proportions/part-share-after-exclusion — tool.io

Similar or alternative tools