Created
August 24, 2023 08:28
-
-
Save acturtle/3f48303618788cdb4ec69c368478f81a to your computer and use it in GitHub Desktop.
actuaries_digital_05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@variable() | |
def net_single_premium(t): | |
if t == settings["T_MAX_CALCULATION"]: | |
return expected_benefit(t) | |
return expected_benefit(t) + net_single_premium(t+1) * 1/(1+assumption["INTEREST_RATE"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment