Skip to content

Main content

Energy Credit Rollover Expiry Tool

Calculate energy credit rollover expiry from explicit caller-supplied inputs.

Loading tool…

Description

beforeCap = opening+earned-used-expired; carried = min(carryCap,beforeCap); forfeited = max(0,beforeCap-carryCap).

Energy contracts and credit accounts distinguish quantities accrued, used, available, curtailed, expired or qualified. A numeric balance applies an explicit convention; it does not establish which contractual or market rules actually apply.

beforeCap = opening+earned-used-expired; carried = min(carryCap,beforeCap); forfeited = max(0,beforeCap-carryCap).

When to use this tool

Use Energy Credit Rollover Expiry when reconciling a specified energy credit, allocation or settlement term.

How to use the tool and how it works

  1. Enter opening, earned, used, expired, carryCap. 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 beforeCap, carried, forfeited. Use the output convention below.

Require nonnegative opening, earned, used, expired and carryCap, with used+expired <= opening+earned. beforeCap = opening+earned-used-expired; carried = min(carryCap,beforeCap); forfeited = max(0,beforeCap-carryCap).1

Input fieldMeaning and unitsAccepted input
openingOpeningRequired. Finite number; minimum 0.
earnedEarnedRequired. Finite number; minimum 0.
usedUsedRequired. Finite number; minimum 0.
expiredExpiredRequired. Finite number; minimum 0.
carryCapCarry CapRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
beforeCapBefore CapRequired. Finite number.
carriedCarriedRequired. Finite number.
forfeitedForfeitedRequired. Finite number.
json
{
  "input": {
    "opening": 100,
    "earned": 50,
    "used": 40,
    "expired": 10,
    "carryCap": 80
  },
  "output": {
    "beforeCap": 100,
    "carried": 80,
    "forfeited": 20
  }
}

Limitations and assumptions

  • All amounts share the same credit unit. Expiry precedes the carry cap; actual credit policy and entitlement are not established.
  • 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

Review actual program rules, contract terms and dated records before treating a calculated balance or payment as due.

References

  1. Calculation and input contract: energy-economics/energy-credit-rollover-expiry — tool.io

Similar or alternative tools