Skip to content

Instantly share code, notes, and snippets.

@acturtle
Created August 24, 2023 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acturtle/3f48303618788cdb4ec69c368478f81a to your computer and use it in GitHub Desktop.
Save acturtle/3f48303618788cdb4ec69c368478f81a to your computer and use it in GitHub Desktop.
actuaries_digital_05
@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