[comp.sources.wanted] Program to calculate rate of return

larry@st-andy.uucp (Larry Martell) (03/11/91)

I am looking for a program (or just a formula would do - I could write the
program) that figures out your total annual rate of return based on monies that
were invested at different times. For example:

	DATE	AMOUNT INVESTED
	----	---------------
	1/1/90	$1000.00
	2/1/90  $1000.00
	4/1/90  $2500.00

On 7/1/90 you have $5000.00. Your profit was $500.00 after 6 months on an 
investment of $4500.00, but you had $1000.00 invested for 6 months, 
$1000.00 invested for 5 months, and $2500.00 invested for 3 months. 
What is your annual rate of return on this investment? (It's not simply
22.22%.)

The program I am looking for would read a file to get the list of investments
made, and would also have a mode where you could enter new investments which 
would be written to the file. 

As I said above, if someone could provied me with a formula to calculate
such a thing, I will write the program and post it if there is interest (no
pun intended).

Thanks!
-- 
Larry Martell
uunet!st-andy!larry
212-668-9478

ts@uwasa.fi (Timo Salmi) (03/12/91)

In article <1991Mar11.141136.1160@st-andy.uucp> larry@st-andy.uucp (Larry Martell) writes:
>I am looking for a program (or just a formula would do - I could write the
>program) that figures out your total annual rate of return based on monies that
>were invested at different times. For example:

/pc/ts/tsfima12.arc:

TSFIMA12.ARC    Financial mathematics by T.Salmi
Filename        Comment                             Date      Time    CRC
--------        --------------------------------    ----      ----    ---
ANNT.EXE        Tableau of annuity factors        01-04-89  16:39:18  3401
IRR.EXE         Solves internal rate of return    01-05-89  09:06:40  868F
IRSR.EXE        Multiple internal rates of ret.   01-05-89  09:51:02  97B2
LAINA.EXE       Loan amortization, Bilingual      11-03-88  16:06:28  B11B
NPV.EXE         Investment's net present value    01-05-89  09:05:42  E7C2
PVT.EXE         Tableau of present values         01-04-89  16:37:16  2625
TSFIMA.INF      Document                          06-01-89  12:43:06  79F7
TSPROG.INF      List of PD programs from T.Salmi  05-28-89  13:10:24  F9AA
----            ------             ------  -----
0008            134686             101377   25%

The wares are available by anonymous ftp from garbo.uwasa.fi, Vaasa,
Finland, 128.214.12.37, or by using our mail server (use the latter
if, and only if you don't have anonymous ftp).  If you are not
familiar with anonymous ftp or mail servers, I am prepared to send
prerecorded instructions on request.  (If you don't get the
instructions from me within a few days, it will mean that your email
address cannot be reached by a simple email reply.  Contact your
system manager for devicing a proper mail path for you, because
unless you do, you wouldn't be able to utilize the mail server
anyway.  If you are in North America first consider using an ftp
site near you to spare the overseas load.)

...................................................................
Prof. Timo Salmi        
Moderating at garbo.uwasa.fi anonymous ftp archives 128.214.12.37
School of Business Studies, University of Vaasa, SF-65101, Finland
Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun