Skip to content

Instantly share code, notes, and snippets.

@carlaiau
Last active January 14, 2021 21:27
Show Gist options
  • Save carlaiau/26b8b96ad7377e2b1f5608ab6697f0d3 to your computer and use it in GitHub Desktop.
Save carlaiau/26b8b96ad7377e2b1f5608ab6697f0d3 to your computer and use it in GitHub Desktop.
Can we set rateInputs with a differing duration to the project duration?
{
  "providerAccountId": "mvp-02-1988",
  "fromDateTime": "2021-01-15",
  "populateCosts": true,
  "propertyInputs": [
    {
      "scenarios": "before,solar,after",
      "keyName": "projectDuration",
      "dataValue": 50
    },
    {
      "scenarios": "before,after",
      "keyName": "providerProfileId",
      "dataValue": "mvp-02-1988-exact",
      "dataFactor": 1
    },
    {
      "scenarios": "before,after",
      "keyName": "rateInflation",
      "dataValue": "3.5"
    },
    {
      "scenarios": "solar",
      "keyName": "rateInflation",
      "dataValue": "0"
    },
    {
      "scenarios": "after,solar",
      "keyName": "solarDegradation",
      "dataValue": "1.5"
    },
    {
      "scenarios": "after,solar",
      "keyName": "providerProfileId",
      "dataValue": "mvp-02-1988-solar-0"
    }
  ],
  "rateInputs": [
    {
      "scenarios": "after,solar",
      "chargeType": "FIXED_PRICE",
      "fromDateTime": "2021-01-15",
      "toDateTime": "2033-01-15",
      "rateBands": [
        {
          "rateAmount": 247
        }
      ]
    },
    {
      "scenarios": "after,solar",
      "chargeType": "FIXED_PRICE",
      "fromDateTime": "2033-01-15",
      "toDateTime": "2071-01-15",
      "rateBands": [
        {
          "rateAmount": 0
        }
      ]
    }
  ]
}

Snippet of the results summary

You can see the lifetimeSolarCost is 148,200 which equates to 247 * 600. This has been applied over the entire term.

The analysis ignores the from/to times in the rateInputs. Does your system allow for this and I'm doing this incorrectly?

{
  "lifeTimeUtilityAfterCost": 656166.872,
  "lifeTimeUtilityAvoidedRate": 0.269,
  "lifetimeAvoidedCost": -21447.292,
  "lifetimeSolarCost": 148200,
  "lifetimeWithoutCost": 782919.58,
  "netAvoidedCost": 1443.24,
  "netAvoidedCostPctOffset": 0.2415,
  "netAvoidedKWh": 13341.46,
  "netAvoidedKWhPctOffset": 0.2387,
  "netAvoidedRate": 0.108177,
  "postTotalCost": 4533.41,
  "postTotalKWh": 42539.769413,
  "postTotalKWhCost": 4168.412278,
  "postTotalKWhRate": 0.097989,
  "postTotalMinCost": 0,
  "postTotalNonBypassableCost": 0,
  "postTotalNonMinCost": 4533.412278,
  "postTotalRate": 0.106569,
  "preTotalCost": 5976.65,
  "preTotalKWh": 55881.23304,
  "preTotalKWhCost": 5611.647495,
  "preTotalKWhRate": 0.100421,
  "preTotalMinCost": 0,
  "preTotalNonBypassableCost": 0,
  "preTotalNonMinCost": 5976.647495,
  "preTotalRate": 0.106953
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment