Utilities (Disk 97) (Jul 1988) : Financa / FINANCA.doc

    
                    HERMES' FINANCA   (Version 1.0)

                  Copyright (c) 1988 A. G. Kartsatos 

           (CIS = 76617,121, GEnie = XTH58515, PLink = HERMES)

 
                       ***  Shareware Program  ***


     This is a useful program that makes it easy for you to calculate
mortgages, annuities, and compound interest.
  
     ATTENTION:  The "TOPAZ 11" font should be in your current "fonts" 
directory. If it is not there, you will get the program running with "funny"
fonts!

     To use it from the CLI: Press "RUN FINANCA".
     To use it from the Workbench: Click its icon.
     To exit, choose "QUIT" from the menu.

                                 CALCULA

     CALCULA evaluates any valid expression involving the 5 supported
algebraic functions and the 5 algebraic operations. 
     In order to use CALCULA, do the following:

     (1)  Insert the function to be evaluated in the "FUNCTION" gadget. 
     
     (2)  Insert the values (if needed) for any of the variables X, Y, Z in 
          their respective gadgets.

     (3)  Click the "EVALUATE" gadget.

     The value of the function is given in the "RESULT" gadget.

     REMEMBER:

     (I)    Use only parentheses. No brackets are allowed.

     (II)   The function must be at most 100 characters long.

     (III)  This version does not support scientific notation.  Avoid the use
            of numbers with more than 13 digits before the decimal point
            and/or 9 digits after the decimal point.

     (IV)   Exponential expressions grow/decay very fast.  The largest
            power I have allowed for e is 32. (exp(32.)).

     (V)    Check the available functions and operators by choosing
            "FUNCTIONS" from the menu.  Make sure that you are using the
            right notation for your functions.

     (VI)   To "CLEAR" ONE of the string gadgets, click into it and press
            RIGHT-AMIGA-X.  Press "CLEAR ALL" to clear ALL the string
            gadgets except the function gadget.

     (VII)  You may use spaces between any expressions.  No problem.

     (VIII) Lower or upper case letters are allowed anywhere.  The program
            turns them all into upper case.

     (IX)   For the sake of speed I have omitted error messages for a whole
            lot of nonsensical things that can happen.  For example, if
            you insert HERMES in the X-gadget, the program will read it
            as 0.000000.  Make sure your input makes sense mathematically.

     (X)    The result is always given with 6 decimal places.  The program
            will prohibit the generation of numbers that are too large to
            print and/or prone to carry prohibitive sizes of error.

     (XI)   CTRL-N gets you to the Workbench and CTRL-M gets you back to
            FINANCA.  If you are planning to work on the Workbench while
            FINANCA is running, make sure to run it with "RUN FINANCA"
            and not just "FINANCA".

     (XII)  When you raise a function to a power, make sure you enclose
            the function in parentheses.  For example, you should use
            (exp(1.89))^2 instead of exp(1.89)^2.  The same remark applies
            to other similar situations.


                                  ANNUITY

     This menu item computes the FUTURE VALUE of an amount of money deposited
at the beginning/end of each period.

     EXAMPLE 1:

     Assume that you make payments into an annuity consisting of $300
dollars at the end of every 3 months at the rate of 6% compounded quarterly.
     You like to know what the amount (future value) of the annuity is at
the end of 3 years.
     Here is what you do: Make sure the beginning/ending gadget is set to 
ENDING.
     You can do this by clicking into it.
     Insert:

     PAYMENT     = 300     (300 dollars quarterly)
     INTEREST    = .06     (6% interest: 6/100)
     PERIODS     = 12      (12 quarters in 3 years)
     PERIODS/YEAR = 4      (4 quarters per year)

     RESULT: 3912.363429

     EXAMPLE 2:

     Same as Example 1, but the payments are maid AT THE BEGINNING of each
3-month period.
     Set the beginning/end gadget to BEGINNING.
     Then insert all the data as above in the corresponding gadgets.

     RESULT: 3971.048881

     EXAMPLE 3:

     Assume that the data of the previous two examples still stand with the
following difference:  The amount of $300 is deposited into the annuity at the
beginning of each month.
     Insert:

     PAYMENT       = 300     (300 dollars quarterly)
     INTEREST      = .06     (6% interest: 6/100)
     PERIODS       = 36      (36 months in 3 years)
     PERIODS/YEAR  = 12      (12 months per year)

     RESULT: 11859.835647

                           COMPOUND INTEREST 

     You deposit a certain amount of money (PRINCIPAL) at a certain interest
compounded monthly (or quarterly, or yearly, or otherwise) and you would like
to know what has become of that amount after a certain amount of time.  This
is COMPOUND INTEREST.

     EXAMPLE 4:

     Assume that $3000 (PRINCIPAL) is placed in a savings account at an
interest of 6% compounded semiannualy.  What is the compound amount at the
end of seven years?
     Insert:
    
     PRINCIPAL     = 3000      (amount deposited)
     INTEREST:     = .06       (6% interest: 6/100)
     PERIODS:      = 14        (total number of periods 2x7 = 14)
     PERIODS/YEAR  = 2         (2 six-month periods per year)

     RESULT: 4537.769175

     EXAMPLE 5:

     Same as above, but the interest is compounded quarterly.  Now, the 
PERIODS are 28 and the PERIODS/YEAR are 4.  

     RESULT: 4551.666540

                                    MORTGAGE

     This item considers the following problem:  Suppose you buy a house at
A dollars, at the rate (interest) r per period, by n equal payments of R
dollars each AT THE END of each period.  You know A, r, and n, what is the
value of R?  This program will give you the monthly payments of R dollars.

     EXAMPLE 6:

     Amortize a loan of $30000 for a new home which carries a 20-year mort-
gage at the rate of 9% compounded monthly.  Find the monthly payment.

     Insert:

     PAYMENT:        30000     (loan of 30000 dollars)
     INTEREST:       .09       (9% interest: 9/100)
     PERIODS:        240       (12x20 = 240 months)
     PERIODS/YEAR:   12        (12 months per year)

     RESULT: 269.917787

     EXAMPLE 7:

     A person wants to amortize a loan of $10000 with interest at 8% in six
semiannual payments.  If the interest is compounded semiannualy, what is
the amount of each six-month payment?

     Insert:

     PAYMENT:        10000     (loan of 10000 dollars)
     INTEREST:       .08       (8% interest: 8/100)
     PERIODS:        6         (6 six-month payments)
     PERIODS/YEAR:   2         (2 6-month periods per year)

     RESULT: 1907.619025  

                             ***  <<<-->>>  ***

     This is a SHAREWARE copyrighted program.  If you find it useful, 
please send $15.00 to the address at the end.
     With this contribution you will receive more programs written by the
author.
     Feel free to distribute this program, with the doc intact, to any
bulletin boards and other non-profit establishments in the US and abroad.
     These include PLink, Compuserve, GEnie, Delphi, etc.
     The inclusion of this program, or any part of it, in any form in a 
commercial package, or its use for commercial purposes, requires the 
written permission of the author.
     
     The author bears no responsibility for errors that might occur while the
user uses this program.  A lot of efforts have been made to deliver to you
a responsible program.

     Other programs by the author:

          PALETTA.ARC    (Color Mixing, Modifying IFF's, Random Colors)
          DUHERM26.ARC   (Great Directory Utility.  Macros, Parameters, etc)
          SIMPLICA.ARC   (The Simplex Method Of Linear Programming)
          ROST.ARC       (Reports On Storage And Tasks.  Useful!)
          LISTA11.ARC    (Very Convenient File Lister.  Alpha, Bytes, etc.)
          SCRIPTA.ARC    (Online!-PCP Script Maker.  Easy To Use!)
          CALCULA.ARC    (17 Functions Expression Parser And Evaluator)
          ARCHA.ARC      (ARC-PAK-ZOO Utility Plus 9 Extra Utility Gadgets)
          FORMULA!.ARC   (Great 3D-Grapher In C.  Colors, Parsing, etc.)

     For support on the HERMES programs, call:

         HERMES BBS (Tampa, FL, USA)
         813-985-7624
         1400 Files, 2400, PCP, Good Message Base, PRIVATE

     Also, you may call (voice) or write:

         A. G. Kartsatos (PLink = HERMES)
         8524 Caladesi Island Drive
         Tampa, FL 33637, USA
         813-988-2146