Learn R Programming

brfinance (version 0.8.0)

calc_pmt: Loan Payment (PMT)

Description

Calculates the periodic payment for a loan.

Usage

calc_pmt(pv, rate, n, type = 0)

Value

Periodic payment amount.

Arguments

pv

Present value (loan amount).

rate

Interest rate per period (decimal).

n

Number of periods.

type

Payment timing: 0 for end of period, 1 for beginning of period.

Examples

Run this code
calc_pmt(pv = 10000, rate = 0.01, n = 12) # Loan de R$10k, 1% ao mês, 12 meses

Run the code above in your browser using DataLab