Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
R
R - Life Insurance Contracts
Commits
b2b8dea6
Commit
b2b8dea6
authored
Nov 26, 2021
by
Reinhold Kainhofer
Browse files
Fix unearned premiums (factor was calculated with the wrong logic)
parent
e01a4b05
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/InsuranceTarif.R
View file @
b2b8dea6
...
...
@@ -1209,7 +1209,7 @@ InsuranceTarif = R6Class(
freq
=
params
$
ContractData
$
premiumFrequency
bm
=
month
(
params
$
ContractData
$
contractClosing
)
fact
=
(
month
(
factors
$
date
)
-
bm
+
12
+
1
)
%%
(
12
/
freq
)
*
(
freq
/
12
)
fact
=
(
bm
-
month
(
factors
$
date
)
+
12
-
1
)
%%
(
12
/
freq
)
*
(
freq
/
12
)
}
# TODO: We have no vector of actual written premiums (implicit assumption
# seems to be that the premium stays constant!). Once we have such a vector,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment