(profastnpv:profastnpvmodel)=
# ProFastNPV
The `ProFastNPV` finance model calculates the net present value (NPV) of a commodity using [ProFAST](https://github.com/NREL/ProFAST).

`ProFastNPV` inherits from `ProFastBase` so refer to the [`ProFastBase` documentation](profast:overview) for setting the finance parameters.

The only additional parameter that's required when using the `ProFastNPV` model is `commodity_sell_price`.

Below is an example of how to set up the ProFast NPV model in the `plant_config`:

```yaml
finance_parameters:
  finance_model: "ProFastNPV"
  model_inputs:
    commodity_sell_price: 0.05 # USD/commodity
    params: !include  "profast_params.yaml" #Finance information
    capital_items: #default parameters for capital items unless specified in tech_config
      depr_type: "MACRS" ##depreciation method for capital items, can be "MACRS" or "Straight line"
      depr_period: 5 #depreciation period for capital items
      refurb: [0.]
  cost_adjustment_parameters:
    target_dollar_year: 2022
    cost_year_adjustment_inflation: 0.025 # used to adjust costs for technologies to target_dollar_year
```

(profastnpv:outputs)=
## Output values and naming convention
``ProFastNPV`` outputs the following data following the naming convention detailed below:
- `NPV_<commodity_and_descriptor>`: net present value of commodity in USD.

**Naming convention**:
- `<commodity_and_descriptor>`:
  - if `commodity_desc` is **not** provided, then `<commodity_and_descriptor>` this is just `commodity`. For example, `NPV_hydrogen` if the `commodity` is `"hydrogen"`.
  - if `commodity_desc` is provided, then `<commodity_and_descriptor>` is `<commodity>_<commodity_desc>`. For example, `NPV_hydrogen_produced` if the `commodity` is `"hydrogen"` and `commodity_desc` is `"produced"`
