Annuities-Due¶
An annuity-due is a type of annuity in which the payments occur at the beginning of each payment period. We define a basic annuity-due as an annuity-due in which every payment equals 1.
The formulas for basic annuities-due are similar to those for basic annuities-immediate, except the present value of the basic annuity-due is taken at the time of the first payment, and the accumulated value is taken at the next period following the final payment of the annuity. In the case of compound interest:
Examples¶
Suppose we have a basic annuity-due that pays 1 at the beginning of each year for 5 years at an annual effective interest rate of 5%. What is the present value?
Again we can use TmVal’s Annuity
class to solve this problem. The change from the previous section’s example is that this time, we just need to change specify that our annuity is an annuity-due by setting the argument imd=’due’. This argument defaults to ‘immediate,’ which is why we didn’t need to set it last time:
In [1]: from tmval import Annuity, Rate
In [2]: ann = Annuity(
...: amount=1,
...: term=5,
...: period=1,
...: gr=Rate(.05),
...: imd='due'
...: )
...:
In [3]: print(ann.pv())
4.54595050416236
As before, we can also reduce the number of arguments provided by simply providing the number of payments and interest rate, but this time also the imd argument:
In [4]: from tmval import Annuity, Rate
In [5]: ann = Annuity(
...: n=5,
...: gr=Rate(.05)
...: )
...:
In [6]: print(ann.pv())
4.329476670630819
What is the accumulated value? We can use Annuity.sv()
to find out:
In [7]: print(ann.sv())
5.525631250000002