> ## 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.

# Schedule

### Gross IM

|                          |                                                            |
| ------------------------ | ---------------------------------------------------------- |
| **Description**          | Gross Initial Margin according to the schedule methodology |
| **Notation**             | $GrossIM$                                                  |
| **Required hierarchies** | [Regulation](../dimensions/regulation#regulation)          |

**Formula**

$GrossIM = Notional \cdot MarginRate$

Please note, that to obtain a meaningful result, you need to add a hierarchy representing netting set into the view. The hierarchy representing the netting sets is configurable, usually it is PortfolioID or NettingSetID.

### Gross Replacement Cost

|                 |                                                                |
| --------------- | -------------------------------------------------------------- |
| **Description** | Sum of positive market values across trades in the netting set |

**Formula**

sum of positive market values across trades in the netting set of max(0, PV) (in-the-money trades)

Please note, that to obtain a meaningful result, you need to add a hierarchy representing netting set into the view. The hierarchy representing the netting sets is configurable, usually it is PortfolioID or NettingSetID.

### Net Replacement Cost

|                 |                                                      |
| --------------- | ---------------------------------------------------- |
| **Description** | Present value of the portfolio, if positive, else 0. |

**Formula**

max(0, sum across trades in the netting set PV)

Please note, that to obtain a meaningful result, you need to add a hierarchy representing netting set into the view. The hierarchy representing the netting sets is configurable, usually it is PortfolioID or NettingSetID.

### NGR

|                          |                                                   |
| ------------------------ | ------------------------------------------------- |
| **Description**          | Net to Gross ratio                                |
| **Required hierarchies** | [Regulation](../dimensions/regulation#regulation) |

**Formula**

NGR = net replacement cost / gross replacement cost

Please note, that when gross replacement cost is 0 (all PVs are negative for a netting set) then the NGR will default to 1.

### Notional

|                          |                                                   |
| ------------------------ | ------------------------------------------------- |
| **Description**          | Notional for the Schedule-based Margin            |
| **Required hierarchies** | [Regulation](../dimensions/regulation#regulation) |

Please note, that to obtain a meaningful result, you need to add a hierarchy representing netting set into the view. The hierarchy representing the netting sets is configurable, usually it is PortfolioID or NettingSetID.

### PV

|                 |                                                                            |
| --------------- | -------------------------------------------------------------------------- |
| **Description** | Present value of trades contributing into the replacement cost calculation |
| **Notation**    | PV                                                                         |

### Standard IM

|                          |                                                   |
| ------------------------ | ------------------------------------------------- |
| **Description**          | Schedule-based Margin                             |
| **Required hierarchies** | [Regulation](../dimensions/regulation#regulation) |

**Formula**

Standard IM = Multiplier1 \* Gross initial margin + Multiplier2 \* NGR \* Gross initial margin

Please note, that to obtain a meaningful result, you need to add a hierarchy representing netting set into the view. The hierarchy representing the netting sets is configurable, usually it is PortfolioID or NettingSetID.

The multipliers in the formula are configurable.
