philsupertramp/game-math
Loading...
Searching...
No Matches
Insurance.h
Go to the documentation of this file.
1
6#pragma once
7#include "Probability.h"
8
9
13struct Interest {
15 double i;
17 double n;
19 double B_0;
21 double B_N;
23 double R;
24};
25
32double compoundingFactor(double i);
40double discountFactor(double i);
41
88
double compoundingFactor(double i)
double endValueOfAnnuityInArrear(Interest I)
double fundamentalValueOfAnnuityInAdvance(Interest I)
double fundamentalValue(Interest I)
double discountFactor(double i)
double fundamentalValueOfAnnuityInArrear(Interest I)
double termInPeriods(Interest I)
double endValueOfAnnuityInAdvance(Interest I)
double endValue(Interest I)
Definition: Insurance.h:13
double i
Interest rate.
Definition: Insurance.h:15
double n
Period length.
Definition: Insurance.h:17
double B_N
End balance.
Definition: Insurance.h:21
double R
annual Pension
Definition: Insurance.h:23
double B_0
Starting balance.
Definition: Insurance.h:19