> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Query time (core)

For the GIRR risk class, there are three main chains of post-processor calculations: Delta, Vega, and Curvature.

## Delta and Vega

The calculation steps for Delta and Vega are the same:

1. The calculations start by applying currency conversion to the aggregated raw sensitivities from the cube to get the [Sensitivities](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-sensi.md).

2. The [risk-weights](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-curv-rw.md) are applied to get the [Weighted Sensitivities](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-weighted-sensi.md) (per risk-factor).

3. The [(rho) correlations](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-risk-position-corr.md) are then used to calculate the [Risk Position](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-risk-position.md) (per bucket).

4. The Risk Positions are combined across all buckets to calculate the [Risk Charge](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-risk-charge.md).

In the dashboards folder "ActiveViam FRTB" -> "Basel Framework" -> "SBM",
there are dashboards "GIRR Delta" and "GIRR Vega",
which contain tabs that walk through these calculation steps and include the measures mentioned here.

## Curvature

For Curvature, the calculation steps are:

1. Start with [vectors of shocked prices](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curvature-scenario-up-down-pv-ccy.md) indexed by risk-weight (per risk-factor).

2. The [risk-weight](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/delta-vega-curv-rw.md) then determines which [Shock Up/Down Prices](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-shock-up-down.md) are required, subtracting the trade **PV** if necessary.

3. The [delta sensitivities](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-delta-sensi.md) are filtered sensitivities from the Delta calculations, and aggregated per Curvature risk-factor.

4. These are then combined to calculate the [CVR Up/Down](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-cvr-up-down.md) (per risk-factor).

5. The [Risk Position Up/Down](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-risk-position-up-down.md) are calculated per bucket.

6. The greater of the up and down risk-positions is identified by the [Risk Position Scenario](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-risk-position-scenario.md) and used for the [Risk Position](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-risk-position.md) (per bucket).

7. The Risk Positions are combined across all buckets to calculate the [Risk Charge](https://docs.activeviam.com/solutions/frtb/6.0/interpret-impl/acr/sa/sa-sbm/girr/calculations/query-time-core/curv-risk-charge.md).

The dashboard "ActiveViam FRTB" -> "Basel Framework" -> "SBM" -> "GIRR Curvature"
contains tabs that walk through these calculation steps and includes the measures mentioned here.
