home *** CD-ROM | disk | FTP | other *** search
- IRA Calculator
- by Joel Swank
- September 27 1989
-
-
- The IRA calculator allows easy calculation of future values of
- investment. It opens a Workbench window with 5 gadgets. You enter
- four values into the four string gadgets. "Balance" is the beginning
- investment value. "Interest" is the annual percentage rate earned by
- the investment. "Deposit" is the ammount of new capital added to the
- investment each year. "Years" is the number of years to accumulate
- the investment. When all data is correct, click the "Calculate" gadget.
- The new balance will be put back into the "Balance" gadget. You can
- do many years in one calculation, or just do 1 year at a time, changing
- the data each time.
- The Menu provides save and load items to store the data in a file.
- There is also a help screen item and an item to print the current data.
- IRA may be run from the workbench icon or from the CLI. It accepts
- parameters from the command line or from the tooltypes array of the icon.
-
- CLI calling format:
-
- >ira -w -bnnnnn.nn -ann.nnn -dnnnn.nn -ynn filename
-
- The PARAMETERS:
-
- WB: BALANCE=nnnnn.nn
- CLI: -bnnnnn.nn
- The beginning balance of the investment.
-
- WB: INTEREST=nnn.nnn
- CLI: -ann.nnn
- The annual interest rate in percent.
-
- WB: DEPOSIT=nnnnn.nn
- CLI: -dnnnn.nn
- The ammount of new capital added to the investment each year.
-
- WB: YEARS=nn
- CLI: -ynn
- The duration of the investment in whole years.
-
- WB: FILE=filename
- CLI: filename
- A file containing the above data. Created by the SAVE menu item.
-
-
- FILE Format:
- The data file created by IRA contains one line of ASCII characters.
- It contains the four data items separated by commas. The order of the
- data is BALANCE, INTEREST, DEPOSIT, YEARS. The first 3 are floating
- point numbers and may contain a decimal point. The last must be an
- integer.
-
-
- LIMITS:
-
- BALANCE must be greater than 0.
-
- INTEREST must be less than 99.0 and greater than 0.
-
- DEPOSIT must be posative.
-
- YEARS must be greater than 0.
-