home *** CD-ROM | disk | FTP | other *** search
- DB2IRR.CMD
- by
- Charles I. Hart
- February 13, 1985
- Version 1.0
-
-
- NOTE: This program is a demonstration of one method to find the Internal
- Rate of Return using dBASE II ((c) Ashton-Tate) version 2.41. This
- program has not been tested with other versions of dBASE II and may
- not work properly under other versions. Further, correct opperation
- of this program is not guaranteed. USE THIS PROGRAM AT YOUR RISK!
-
- This program is released into to public domain in response to a specific
- request for a program that performed the Internal Rate of Return
- Calculation. Please feel free to make modification, additions, etc.
- I only ask that if you find a 'feature' that you did not expect, please
- let me know on PCS-47 in Compuserve under PPN 72755,500.
-
-
- O.K., what does it do?
-
- Recall that one defination of Internal Rate of Return is that percentage rate
- used to discount to the present the individual Cash Flows provided by the user
- which causes the Net Present Value of the series of Cash Flows to equal Zero.
- Because of excessive processing time, this program does not attempt to find
- the absolute correct IRR. Rather, a Figure of Merit is chosen something larger
- than zero and the calculation stops when the NPV becomes less than this value.
-
- In its' simplest form, this program takes your cash flows by year (important -
- no provision is made for other time periods!) and advises you of their Internal
- Rate of Return. Let us assume that you buy a house to lease, with the total
- price to be paid up front in cash and each lease payment from the occupant to
- be paid at the end of each year in cash. (Yes, these are simple assumptions,
- but that's what the program assumes to prevent the program from being 30k.)
- Further, let us assume that you keep the house for 5 years and sell it for
- just what you paid. If the purchase price of the house were $50,000 and the
- annual lease $5,000, you would have the following 'CASH FLOW':
-
- Cash Outflow
- Number of Outflows 1 (Program can handle more, but we are being
- very simple here.)
-
- Cash Outflow No. 1 50000 (In this program is entered as positive
- and converted in the file to correct
- convention. Note that no dollar sign
- or comma is entered.)
-
-
- Cash Inflow
- Number of Inflows 5
-
- Cash Inflow No. 1..4 5000 (Enter one value per year.)
- Cash Inflow No. 5 55000 (One Lease Payment plus Sale of the House)
-
- The Program will then iterate (repeat using closer and closer values to the
- correct IRR) until the Net Present Value found is less than the Figure of
- Merit used.
-
-
- Known 'Features' (Sometimes called BUGS)
-
- There is a problem with small cash flows - less than $100 Cash Outflow, say -
- in that the processing time becomes very long and the scaling factors used
- to reduce the incremental rate become too large.
-
- The disk access to the dBASE program on my system is excessive. I expected
- the access to the data disk to be high because of the implementation, but
- I don't understand the system disk activity. Anybody figure a way around this,
- please let me know.
-
- Good Luck.....
-