Skip to content

Instantly share code, notes, and snippets.

@marcosfelt
Last active September 3, 2024 11:02
Show Gist options
  • Select an option

  • Save marcosfelt/a8fc0c3ee2fa431d7e1847a9ca41808a to your computer and use it in GitHub Desktop.

Select an option

Save marcosfelt/a8fc0c3ee2fa431d7e1847a9ca41808a to your computer and use it in GitHub Desktop.
Financial planning simulator
wedding = Expense(
"Wedding", Uniform(Jan/1/2026, Oct/1/2026), Normal(3.3e4, 2e3)
)
house_dp = Expense(
"House downpayment", Uniform(Jan/1/2027, Jan/1/2028), Uniform(8e4, 1.2e5)
)
sim = Simulation([house_dp, wedding], start=Oct/1/2024, end=Nov/1/2094, samples=10000)
sim.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment