Code Monkey home page Code Monkey logo

assetoptimizer's Introduction

AssetOptimizer

Retirement Optimization with Python

A simulation of pre-retirement and post-retirement income and 401(k) growth.

This tool helps to answer the question, "I am starting to save for retirement. Should I open a Roth or a Traditional 401(k) account?". Conversions are not considered.

The image below, output by the tool, shows that the value of the account is the same over time in either the Roth or Traditional case. The example image assumes one would contribute the same amount in either case, additionally assumed to be the maximum possible. The three discontinuities at 25, 35, and 40 respectively the result of decreased investment returns as the portfolio transitions to safer wealth vehicles and finally as retirement begins.

Image

The image below shows that, for the author of this tool, retirement will be significantly more comfortable at a minor cost to pre-retirement income. The discontinuity at about year 26 coincides with the beginning of catch-up contributions. The large discontinuity at year 40 is the beginning of retirement.

Image

Accounted for in the model is

  • initial salary,
  • salary growth with a decaying growth rate,
  • contribution maximum increases (both Traditional and Roth) (assumed to be $500 every 3 years)
  • US income tax schedules for a single filer
  • catch-up contributions (currently allowed age 50+)
  • A change in growth rate / risk tolerance as retirement approaches
  • currency inflation

Input is

  • base salary e.g. $60000
  • the year the simulated person enters the workforce e.g. 24
  • the length of his or her career e.g. 65-24 = 41 years,
  • the length of retirment e.g. death at 95 with retirement at 65 = 30 years in retirment.
  • Initial Roth and Traditional contribution maxima e.g. $17,500 for both Roth and Traditional in 2014

Output is given both as text and charts:

Income pre-retirement pre-and post-tax for Roth and Traditional 401(k).

401(k) assets in pre- and post-retirement years.

assetoptimizer's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.