# Rate

| **Name**    | ***Rate***                                                                              |
| ----------- | --------------------------------------------------------------------------------------- |
| Syntax      | Rate (Real numPeriods, Real Pmt, Real PV)                                               |
| Purpose     | To return the interest rate per period for an annuity.                                  |
| Description | Returns the interest rate per period for an annuity.                                    |
| Return Type | Double                                                                                  |
| Parameters  | <p>numPeriods \[System.Double]</p><p>Pmt \[System.Double]</p><p>PV \[System.Double]</p> |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(40\).png)

### **Example**

In this example, we will be passing the required parameters to the function transformation object using a *Variables* object.

Where,

*numPeriods* = 5

*Pmt ­*= 10

*PV* = 3500

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(41\).png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has applied the Rate function, and returned the Interest rate value.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(41\).png)
