Description
Subtract rebate and flag credit when the net is negative.
Financial accounting arithmetic tracks amounts, balances, fees and allocations on a declared currency and sign basis. An algebraically consistent result does not authorize a transaction or establish an amount legally due.
Subtract rebate and flag credit when the net is negative.
When to use this tool
Use Transaction Fee Rebate Net Charge when you need a specified monetary balance or allocation calculation.
How to use the tool and how it works
- Enter grossFee, rebate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read netFee, credit. Inspect credit before interpreting the associated values.
Require nonnegative gross fee/rebate. Subtract rebate and flag credit when the net is negative.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| grossFee | Gross Fee | Required. Finite number; minimum 0. |
| rebate | Rebate | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| netFee | Net Fee | Required. Finite number. |
| credit | Credit | Required. Boolean. |
{
"input": {
"grossFee": 12,
"rebate": 5
},
"output": {
"netFee": 7,
"credit": false
}
} Limitations and assumptions
- Amounts share currency. Rebates may exceed fees; no contract, entitlement, tax treatment or real transaction is validated.
- 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. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Reconcile source ledgers and governing agreements using the intended currency precision and accounting policy. Include omitted fees, tax, timing and legal requirements before acting on a result.
References
Similar or alternative tools
- Fee Rebate Currency Rounding Gap
Convert feeMinor-minus-rebateMinor and subtract it from roundedNetMinor for gapMinor.
- Fee Gross Net Reversal Factor
Return (net+fixedFee)/(1-rate), gross-minus-net fee and reciprocal gross-up factor.