ipmt | R Documentation |

Calculation of annuity interest.

```
ipmt(irate, per, 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) |

`per` |
period of interest |

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

interest on annuity

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

```
ipmt(.1, 1, 1, -1000) # a single period at 10\% interest >> interest = 1/10 of principal
ipmt(.1, 1:5, 5, -1000) # see five payments of five; the amount of interest goes down
```

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.