Skip to content
Snippets Groups Projects
Commit 1494646c authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Annuities: For lifelong annuities, implement survival payment at the end of...

Annuities: For lifelong annuities, implement survival payment at the end of the final year of the lift table (only relevant if final qx<0).
parent c22f2d55
No related branches found
No related tags found
No related merge requests found
......@@ -299,11 +299,13 @@ InsuranceTarif = R6Class(
}
age = params$ContractData$technicalAge
maxAge = MortalityTables::getOmega(params$ActuarialBases$mortalityTable)
policyPeriod = params$ContractData$policyPeriod
policyTerm = min(maxAge + 1 - age, params$ContractData$policyPeriod)
list(
l = min(maxAge - age, policyPeriod) + 1,
policyTerm = min(maxAge - age, policyPeriod),
premiumTerm = min(policyPeriod, params$ContractData$premiumPeriod)
l = min(maxAge +1 - age, policyTerm),
# maxAge is the last age with a given death probability, so it can be included in the policy term!
# The policy must end AFTER that final year, not at the beginning!
policyTerm = policyTerm,
premiumTerm = min(policyTerm, params$ContractData$premiumPeriod)
)
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment