Calculate risk adjusted npv

Discount aligned scenario cash-flow paths, expose positive-NPV probability and loss VaR/CVaR, then apply an explicit finance-owned CVaR penalty to test a risk-adjusted investment hurdle.

What it's for

Gives CEOs, investors, and product owners one inspectable economic hurdle that includes both expected discounted value and represented severe downside.

What you give it

Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.

Field Type Role Required
confidence_level number ≥ 0.5, ≤ 0.999 Your calibration Optional
cvar_loss_penalty number ≥ 0, ≤ 100 Your calibration Optional
max_detail_rows integer ≥ 1, ≤ 500 Numerical control Optional
minimum_risk_adjusted_npv number Your calibration Optional
period_discount_rate number ≥ -0.99, ≤ 10 Your calibration Yes
scenarios array of objects (3 fields) ≥ 2 items Evidence Yes
tail_probability number ≥ 0.001, ≤ 0.5 Your calibration Optional

Each scenarios record

Field Type Required
cash_flows array of number (≥ 1 item) Yes
id string (non-empty) Yes
probability number (≥ 0, ≤ 1) Yes
Example input
{
  "cvar_loss_penalty": 0.4,
  "minimum_risk_adjusted_npv": 0,
  "period_discount_rate": 0.025,
  "scenarios": [
    {
      "cash_flows": [
        -500,
        -150,
        100,
        150,
        200
      ],
      "id": "downside",
      "probability": 0.15
    },
    {
      "cash_flows": [
        -500,
        100,
        250,
        300,
        350
      ],
      "id": "base",
      "probability": 0.55
    },
    {
      "cash_flows": [
        -500,
        200,
        400,
        500,
        600
      ],
      "id": "upside",
      "probability": 0.3
    }
  ],
  "tail_probability": 0.15
}

What you get back

This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.

Example output
{
  "assumptions": [
    "Cash flows are incremental, after-tax or pre-tax consistently, in one currency and price basis.",
    "Scenario probabilities and joint cash-flow paths were frozen before the decision.",
    "The CVaR penalty weight is an explicit risk preference, not an empirically estimated fact."
  ],
  "configuration": {
    "confidence_level": 0.9,
    "cvar_loss_penalty": 0.4,
    "linearity_check_absolute_error": 0,
    "period_count": 5,
    "period_discount_rate": 0.025,
    "scenario_count": 3,
    "tail_probability": 0.15
  },
  "decision": "risk_adjusted_npv_clears_hurdle",
  "method": "scenario_cvar_risk_adjusted_npv_v1",
  "scenario_diagnostics": [
    {
      "is_loss_tail": true,
      "npv": -230.68,
      "probability": 0.15,
      "scenario_id": "downside"
    },
    {
      "is_loss_tail": false,
      "npv": 431.1771,
      "probability": 0.55,
      "scenario_id": "base"
    },
    {
      "is_loss_tail": false,
      "npv": 1083.7178,
      "probability": 0.3,
      "scenario_id": "upside"
    }
  ],
  "summary": {
    "cvar_downside_penalty": 92.272,
    "cvar_loss": 230.68,
    "expected_npv": 527.6608,
    "minimum_risk_adjusted_npv": 0,
    "npv_interval_lower": -230.68,
    "npv_interval_upper": 1083.7178,

Truncated for display — the full payload is 50 lines.

How it works

Decision analysis — Turn uncertainty, cost and risk appetite into a defensible choice, with the reasoning left inspectable.

  1. 1 Freeze incremental cash-flow paths in one currency, tax and price basis, period cadence, scenario probabilities, and discount rate before evaluating the investment.
  2. 2 Discount every complete scenario path, verify expected-flow and probability-weighted scenario NPV agree by linearity, and calculate positive-NPV probability plus loss VaR/CVaR.
  3. 3 Subtract the explicitly governed CVaR downside penalty from expected NPV and compare the resulting certainty-adjusted value with the accountable owner's hurdle.

Before you trust it

Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.

Assumptions & guardrails

  • Actions, outcomes, utilities, evidence boundaries, uncertainty representation, and accountable ownership match the actual decision.
  • Cash flows are incremental to a stated counterfactual and include relevant implementation, operating, tax, working-capital, terminal, and opportunity costs consistently.
  • Scenario paths preserve temporal and cross-driver dependence, and probabilities were not tuned to make the decision pass.
  • The result structures a governed choice; it does not replace accountable judgment or authorize action outside the declared decision boundary.
  • Risk-adjusted NPV is conditional on supplied cash-flow paths and risk preference; it is not fair value, realized cash, or proof the investment caused later returns.

Minimum evidence

  • scenarios: at least 2 rows/items
  • period_discount_rate: required and organization-defined

How to validate it

Validate on future periods or held-out aggregate units, compare with a simple baseline, and require stability across plausible metric definitions and decision thresholds.

Calibrating it to your org

Same for everyone

The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.

Specific to you

  • complete aligned incremental cash-flow paths with explicit probability and zero/failed outcomes
  • counterfactual, currency, nominal/real and tax basis, cadence, horizon, terminal value, discount rate, probabilities, tail probability, CVaR penalty, and hurdle

Calibration workflow

  1. 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
  2. 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
  3. 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
  4. 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
  5. 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
  6. 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.

Call it from your AI

You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.

gitrevio_capabilities_search
  { "q": "discount aligned scenario cashflow paths expose" }
  → finds "calculate_risk_adjusted_npv"

gitrevio_capability_describe
  { "capability_id": "calculate_risk_adjusted_npv" }
  → returns the input schema and agent guidance shown on this page

gitrevio_capability_run
  { "capability_id": "calculate_risk_adjusted_npv", "arguments": { ... } }
  → returns the result shown above

Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.

Related tools

Allocate budget with CVAR constraint

Maximize expected portfolio return while keeping probability-weighted loss CVaR below a finance-owned tail-risk ceiling across aligned joint scenarios.

Constrained optimization

Construct deterministic project pareto frontier

Construct the exact practically nondominated frontier and successive Pareto layers across projects, products, vendors, or investments without hiding tradeoffs behind arbitrary score weights.

Statistical audit & measurement

Construct stochastic pareto frontier

Construct a stochastic Pareto frontier from aligned joint criterion scenarios using scenario-wise frontier membership and pairwise practical chance dominance rather than dominance of point estimates.

Statistical audit & measurement

Estimate cost of delay distribution

Translate probabilistic delivery delay into discounted contribution-value loss, permanent value decay, and governed penalties, including expected cost, tail cost, and the probability of material exposure.

Statistical audit & measurement

Optimize budgeted initiative portfolio

Select the highest expected-value initiative portfolio under cash and multi-resource budgets while enforcing dependencies and mutual exclusions across aligned business scenarios.

Constrained optimization

Audit budget constraint binding

Audit whether a claimed budget constraint genuinely blocks value after dependency-feasible portfolio reallocation, separating current-plan inefficiency from scarcity with scenario CVaR and a discrete budget shadow price.

Constrained optimization

See every tool in Investment & portfolio choice →

Ready to See Your Engineering work clearly?

Request a free demo