-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.R
37 lines (23 loc) · 802 Bytes
/
main.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
library(RODBC)
source('./parameters.R')
source('./kommutationsFunktioner.R')
source('./miscFunctions.R')
source('./managFunctions.R')
#
kalkyldatum = as.Date('2017-07-31', '%Y-%m-%d')
birth.ff = as.Date('1967-07-31', '%Y-%m-%d')
sex.ff = 'm'
pensions.alder = 65
gb = 100.0
utb.tid = 5
gar.tid = 5
produkt = 'SAFLO3T'
#produkt = 'KAPKL2T'
tabell = 'APG'
grund = 'PRES'
PREM = aterkopsVarde(kalkyldatum, birth.ff, sex.ff, pensions.alder, gb, utb.tid, gar.tid, produkt, tabell, grund)
PRG = aterkopsVarde(kalkyldatum, birth.ff, sex.ff, pensions.alder, gb, utb.tid, gar.tid, produkt, tabell, 'PGR')
#e = eLife(kalkyldatum, birth.ff, sex.ff, pensions.alder,grund)
sprintf("PREM = %f",PREM)
sprintf("PRG = %f",PRG)
#sprintf("Ex = %f",e/12)