Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!st-andy!larry From: larry@st-andy.uucp (Larry Martell) Newsgroups: comp.sources.wanted Subject: Program to calculate rate of return Message-ID: <1991Mar11.141136.1160@st-andy.uucp> Date: 11 Mar 91 14:11:36 GMT Organization: RMJ Securities Corp. Lines: 29 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