Scrap Lot Aggregate Melt Value Calculator

Reconcile actual independent lot×metal assay, caller recoverability/spot and per-lot fees using exact BigInt rational rounding in one currency; not scalar average of known lot value, price lookup, investment or assay authenticity.

Description

Scrap-lot proceeds depend on contained mass, measured recovery and a common-currency price basis.

Scrap-lot proceeds depend on contained mass, measured recovery and a common-currency price basis. Rounding each metal line differs from rounding a whole lot once.1

Enter unique aligned lot/metal IDs, rectangular nonnegative integer contained-mass matrix (each cell 0–1,000,000,000 mg), integer spot prices/fees 0–1,000,000,000 and recovery 0–10000 basis points. Round each cell using exact integer arithmetic, subtract lot fees, then aggregate.

When to use Scrap Lot Aggregate Melt Value Calculator

Use Scrap Lot Aggregate Melt Value Calculator when you need to evaluate the supplied records under the calculation and evidence rules below. Negative net lots are retained; resulting totals must be safe integers. No price, assay, actual recovery or tax is obtained.

Prepare the measured coin evidence or explicitly verified catalog and prices requested. Keep measurement conditions, units and currency consistent.

How to use Scrap Lot Aggregate Melt Value Calculator and understand its results

  1. Prepare the measured coin evidence or explicitly verified catalog and prices requested. Keep measurement conditions, units and currency consistent.
  2. Enter lotIds, metalIds, independentlyAssayedContainedMetalMgByLot, callerSameCurrencySpotMinorPerGram, callerRecoverableMetalBasisPoints, callerLotRefiningFeesMinor using the field table and calculation rules, then run the tool.
  3. Read roundedRecoverableMetalValuesMinorByLot, netLotMetalValuesMinor, aggregateNetMeltValueMinor. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
lotIdsLot idslist of stringRequired
metalIdsMetal idslist of stringRequired
independentlyAssayedContainedMetalMgByLotIndependently assayed contained metal mg by lotlist of list of numberRequired
callerSameCurrencySpotMinorPerGramCaller same currency spot minor per gramlist of numberRequired
callerRecoverableMetalBasisPointsCaller recoverable metal basis pointslist of numberRequired
callerLotRefiningFeesMinorCaller lot refining fees minorlist of numberRequired

Enter unique aligned lot/metal IDs, rectangular nonnegative integer contained-mass matrix (each cell 0–1,000,000,000 mg), integer spot prices/fees 0–1,000,000,000 and recovery 0–10000 basis points. Round each cell using exact integer arithmetic, subtract lot fees, then aggregate.

cellMinor=roundHalfUp(mg×spotMinorPerGram×recoveryBP/10000000)

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
roundedRecoverableMetalValuesMinorByLotRounded recoverable metal values minor by lotlist of list of number
netLotMetalValuesMinorNet lot metal values minorlist of number
aggregateNetMeltValueMinorAggregate net melt value minornumber
json
{
  "input": {
    "lotIds": [
      "a",
      "b"
    ],
    "metalIds": [
      "gold",
      "silver"
    ],
    "independentlyAssayedContainedMetalMgByLot": [
      [
        1000,
        2000
      ],
      [
        0,
        3000
      ]
    ],
    "callerSameCurrencySpotMinorPerGram": [
      1000,
      100
    ],
    "callerRecoverableMetalBasisPoints": [
      9000,
      10000
    ],
    "callerLotRefiningFeesMinor": [
      50,
      25
    ]
  },
  "output": {
    "roundedRecoverableMetalValuesMinorByLot": [
      [
        900,
        200
      ],
      [
        0,
        300
      ]
    ],
    "netLotMetalValuesMinor": [
      1050,
      275
    ],
    "aggregateNetMeltValueMinor": 1325
  }
}

Limitations and assumptions

Negative net lots are retained; resulting totals must be safe integers. No price, assay, actual recovery or tax is obtained.

Numeric inputs, where present, must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Matrices are limited to 128 rows and 128 entries per row. Numeric lists are limited to 10,000 entries; string lists to 128 strings of at most 128 characters each. The rules above may impose smaller limits. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors.

Alternative or Complementary methods

Use Rebalancing Trade Amount GSR Calculator: A target gold share allocates a recorded portfolio value between two metals. Value trades and physical quantities use distinct units. For a complementary task, use Specific Gravity Composition Checker: Specific gravity is relative density. An ideal two-material mass mixture has additive specific volumes, which leads to a reciprocal-density relation.

References

  1. Scrap Lot Aggregate Melt Value Calculator — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies