Back to JS main page

BY:David Leung
DATE:1997-01-08


COMMENTS:

This JavaScript Financial Goal Calculator puts complex financial formulas aside, leaving a user-friendly interface in plain English.The unique five-array configuration presented here allows the user to give each variable a range of values, thus mirroring the uncertainty involved in the real-life stock market or other such investments. Manipulating the Rate of Return on Investment (ROI) leads to an output similar to the College Fund example below. Manipulating Your Goal allows the investor to see the time needed to reach the goal. Adjusting Initial Capital and Monthly Invested allows for varying amounts in accordance with one's financial situation.


Your
Goal$
Initial
Capital$
Monthly
Invested$
ROI
%
Year
Investment
Gain$

College Fund - Various Goals - Millionaire


Example : College Fund - Five different ways to invest and achieve the $50,000 College Fund

Based on historical data, we used

  1. 3% (Bank Deposit),
  2. 5% (T-bill),
  3. 7% (T-bond),
  4. 11% (Common Stock), and
  5. 15% (Growth Stock)
    for comparison purposes.
InputOutput
Your
Goal$
Initial
Capital$
Monthly
Invested$
Return on
Investment
(ROI) %
Years to
Achieve
Your Goal
Investment
Gain$
150000500050036.665325.08
250000500050056.168035.37
350000500050075.8310586.18
4500005000500115.1614299.66
5500005000500154.6617225.53

Try Your Own Calculations


Example : Various goals - Invested in stocks with 15% return - How long will it take to achieve them?:

InputOutput
Your
Goal$
Initial
Capital$
Monthly
Invested$
Return on
Investment
(ROI) %
Years to
Achieve
Your Goal
Investment
Gain$
12000 (PC)100010015 (stock)0.75164.6295
25000 (used car)1000100152.51064.520
320000 (new car)1000100157.6610021.84
4200000 (house)10001001521.0174238.1
51000000 (millionaire)10001001531.6963077.3

Try Your Own Calculations


Example : A Millionaire - Invested in stocks with 15% return - The more you invest, the sooner you will be there.

InputOutput
Your
Goal$
Initial
Capital$
Monthly
Invested$
Return on
Investment
(ROI) %
Years to
Achieve
Your Goal
Investment
Gain$
110000001000101542.4996208.8
2100000010001001531.6963077.3
3<1000000010001517.5796542.4
41000000100010001517.4796542.4
51000000100010000155.5357463.6

Try Your Own Calculations


If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.

URL: http://www.oocities.org/SiliconValley/7116/jv_finca.html