# Pmt

| **Name**    | ***Pmt***                                                                                                               |
| ----------- | ----------------------------------------------------------------------------------------------------------------------- |
| Syntax      | Pmt (Real Rate, Real Periods, Real numPeriods, Real PV)                                                                 |
| Purpose     | To return the payment for an annuity based on periodic, fixed payments and a fixed interest rate.                       |
| Description | Returns the payment for an annuity based on periodic, fixed payments and a fixed interest rate.                         |
| Return Type | Double                                                                                                                  |
| Parameters  | <p>Rate \[System.Double]</p><p>periods \[System.Double]</p><p>numPeriods \[System.Double]</p><p>PV \[System.Double]</p> |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/3Y6CNw8a8XgKj9wmAAlB/0.png)

### **Example**

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

Where,

*rate* = 1.0123

*periods* = 0

*numPeriods* = 1000

*PV* = 20000

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/DGdeyM8uUe0nLrLg00Ib/1.png)

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

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/Nl7qckZN8Iawx9uGChXe/2.png)
