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
- Prepare the measured coin evidence or explicitly verified catalog and prices requested. Keep measurement conditions, units and currency consistent.
- Enter lotIds, metalIds, independentlyAssayedContainedMetalMgByLot, callerSameCurrencySpotMinorPerGram, callerRecoverableMetalBasisPoints, callerLotRefiningFeesMinor using the field table and calculation rules, then run the tool.
- Read roundedRecoverableMetalValuesMinorByLot, netLotMetalValuesMinor, aggregateNetMeltValueMinor. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- 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 field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| lotIds | Lot ids | list of string | Required |
| metalIds | Metal ids | list of string | Required |
| independentlyAssayedContainedMetalMgByLot | Independently assayed contained metal mg by lot | list of list of number | Required |
| callerSameCurrencySpotMinorPerGram | Caller same currency spot minor per gram | list of number | Required |
| callerRecoverableMetalBasisPoints | Caller recoverable metal basis points | list of number | Required |
| callerLotRefiningFeesMinor | Caller lot refining fees minor | list of number | Required |
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 field | Meaning | Value type |
|---|---|---|
| roundedRecoverableMetalValuesMinorByLot | Rounded recoverable metal values minor by lot | list of list of number |
| netLotMetalValuesMinor | Net lot metal values minor | list of number |
| aggregateNetMeltValueMinor | Aggregate net melt value minor | number |
{
"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
Similar or alternative tools
- 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.
- 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.