to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
When it comes to investing, are you more prone to suffer Lemony Snicket's Series of Unfortunate Events than you are to have the Midas Touch?
Today, in honor of the DVD release of the Lemony Snicket movie, Political Calculations(TM) offers a fun tool, in which you may safely see what the future value of your investment might be if you were to experience the financial misfortune that surely come at the hands of your investment advisor, Count Olaf, or the incredible wealth you would obtain if your investment advisor was none other than King Midas.
The calculator below allows you to enter a fixed amount that you would invest each year for the number of years you specify. You will be invested in the entire U.S. stock market, which may be fairly represented by today's Wilshire 5000 index. For each year a deposit is made in your investment account, the amount of money you place in the hands of either King Midas or Count Olaf will, for the length of time that the money is invested, have either the corresponding best or worst case inflation-adjusted rate of return as outlined by Political Calculations' post Best and Worst Case Stock Market Investing.
For example, the money that would be deposited for a period of one year will have two future values calculated, one based upon the best historical rate of return for a one year period and the other based upon the worst historical rate of return for a one year period. This process would be repeated for the money placed with these "advisors" for two years, five years, twenty years and so on, until the entire term of your investment period is covered (up to fifty years.) The respective future values for each investment term are added together and provided in the calculator's results below:
Using the calculator, we can find some surprising results, particularly in the Lemony Snicket scenario (of course, we expected good results from King Midas!)
Even with the worst historical inflation-adjusted rates of return, after 29 years of investing, an investor will at least break even (an effective rate of return of 0.0% for that investing period.) In 38 years, the investor would have an effective rate of return of at least 2.0% for their investment, outperforming such "safe" investments as government bonds. After 46 years, the investment account would be worth more than twice what had initially been invested, with an effective rate of return over the entire period of roughly 2.9%. In fifty years, the maximum for the calculator, your effective rate of return on your entire investment in the Lemony Snicket scenario would be slightly over 3.4%. And also notice that at no point in this exercise did the investment lose its entire value.
More than anything else, the Lemony Snicket scenario shows the power of investment diversification and compounding interest over time when it comes to investing. Even with Count Olaf's horrible timing encompassing the worst stock market performances in history, provided the investment is suitably diversified and combined with the compound nature of long term investment growth, even Count Olaf could come out ahead!
Update 26 September 2005: Want to see the best and worst case rates of return over the past 105 years for various investment periods for the S&P 500 index? A graph and calculator for determining those rates of return is available here!
Labels: best case, investing, tool, worst case
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.