pmt | R Documentation |

Calculation of annuity payment.

```
pmt(irate, nper, pv, fv = 0, type = "immediate", silent = FALSE)
```

`irate` |
Interest rate per period (see nper) as fraction (i.e. 5% is .05 or 1/20) |

`nper` |
Number of interest periods as integer (no fractions) |

`pv` |
Present value |

`fv` |
Future value (default is zero) |

`type` |
type of the annuity: due or immediate? |

`silent` |
Should warning messages be suppressed? Default is no. |

The function expects a single interest rate; number of periods, present and future values can be vectors, and in such case a vector would be returned.

annuity payment

builds heavily on https://gist.github.com/raadk/dcd503815bbb271484ff

```
pmt(.1, 5, -1000) # a loan of 1000 units to be repaid in 5 periods at 10\% per period
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.