Learn R Programming

tvmComp (version 1.0.2)

pvYearlyAnnuityCompSemiAnnually: Computing Present Value of Yearly Paid Ordinary Annuity or Annuity Due that is Compounded Semi-Annually.

Description

Computing Present Value of Yearly Paid Ordinary Annuity or Annuity Due that is Compounded Semi-Annually.

Usage

pvYearlyAnnuityCompSemiAnnually(r, n, pmt, bgn)

Arguments

r

A number.

n

A number.

pmt

A number.

bgn

A number.

Value

Input values to four arguments r , n , pmt and bgn

Details

As humm;textualtvmComp explains, while dealing with annuity scenarios, first we must identify whether the problem is that of an Ordinary Annuity or Annuity Due. In an Ordinary Annuity the payment is made at the end of the payment period, whereas, in Annuity Due payment is made in the beginning of the year. To incorporate this effect, the method pvYearlyAnnuityCompSemiAnnually() is developed to compute Present Value of Yearly Paid Ordinary Annuity or Annuity Due that is compounded Semi-Annually. This method gives Present Value when values are passed to its four arguments. Here r is annual rate, n is number of years,pmt is amount of one annuity and bgn is the mode. (Enter 1 when annuity payment occurs at the beginning of the period; 0 for end of period payments).

References

hummtvmComp

Examples

Run this code
# NOT RUN {
pvYearlyAnnuityCompSemiAnnually(0.11,4,-300,0)
pvYearlyAnnuityCompSemiAnnually(0.11,4,-300,1)
pvYearlyAnnuityCompSemiAnnually(0.11,4,300,0)
pvYearlyAnnuityCompSemiAnnually(0.11,4,300,1)
# }

Run the code above in your browser using DataLab