Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - Analysis AddIn and compound interest
Analysis AddIn and compound interest
 
   NeoOffice Forum Index -> NeoOffice Releases
View previous topic :: View next topic  
Author Message
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Thu Jun 28, 2007 1:45 pm    Post subject: Analysis AddIn and compound interest

I've been wrestling with the Calc formulas, trying to figure out how to do compound interest, and I ran across this phrase in the help:


Quote:
This function is only available if Analysis AddIn is installed.


Is the Analysis AddIn installed in Neo? I searched the forums and the wiki and didn't find anything, but maybe I missed it.

Lorinda

I asked my compound interest formula question at the OOo forums, since it's not Neo specific. My post is here If anybody wants to take a gander and help me out. You can pm me here if you aren't registered for the OOo forums. But I'm also content to wait for an answer over at OOo.
Back to top
OPENSTEP
The One
The One


Joined: May 25, 2003
Posts: 4752
Location: Santa Barbara, CA

PostPosted: Thu Jun 28, 2007 6:56 pm    Post subject:

The dynamic library for the analysis Add-in is in the Neo program directory, so I assume it's there. I don't know how to access it myself, but if someone does it'd be good to check that it is in fact available. We may have missed a step in the build required to register it with Calc.

ed
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Fri Jun 29, 2007 1:01 am    Post subject:

OPENSTEP wrote:
The dynamic library for the analysis Add-in is in the Neo program directory, so I assume it's there. I don't know how to access it myself, but if someone does it'd be good to check that it is in fact available. We may have missed a step in the build required to register it with Calc.

ed

The Add-in is there. I can use the CUMUL.INTER_ADD function (in French, I have not looked for the English term for the moment) without problem.

Jacqueline
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Fri Jun 29, 2007 3:16 am    Post subject:

Lorinda,
I've had a look at your post on OOo forum, but I'm not sure that I well understood the problem, and the answers you got confused me a lot Sad

I try to help. I believe that the function you need is CUMIPMT (or CUMIPMT_ADD if you need to get the same result as with the corresponding MSExcell function).
Let's assume that you loaned a certain amount of money, at the annual rate of 5.5% and for 5 years. You have already paid some money off, and the current value that you have to pay back is $10000. You want to know the accumulated interest between now and the end of the loan period, say between the 13th and 60th month.

Enter

CUMIPMT(5.5%/12;60;10000;13;60;0)
5.5%/12 = the monthly interest
60 = total number of payment periods, i.e. months
10000 = current value (what it remains to pay back)
13 and 60 are the first and the last period
0 = type (0 if you pay at the beginning of the period, 1 if you pay at the end of it)
All the values are required.

You get -955.29. that means that you have to pay $955.29 of interests between now and the end of the loan.
If you want to know what it's the interests payment for the next month, enter
CUMIPMT(5.5%/12;60;10000;13;13;0)

Hope I did not misunderstand your problem and hope that helps.

Jacqueline

Edit: If you want to know the total amount of the repayment, i.e. capital + interests, replace the CUMIPMT function with the CUMPRINC one. Same parameters.

HtH
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Fri Jun 29, 2007 5:27 am    Post subject:

Thanks, Jacqueline.

What I need to do is to be able to calculate:
    -the interest due each time I make a payment
    -the new balance
    -the effect of paying more than the required minimum payment


I did find a "Calculator for Loans and Mortgages" template on the OOo Templates and Samples for Calc page. Originally I thought it used simple interest, since the formulas are all "straight math" and don't use any of the financial functions. But then I realized that the monthly payment figure that calculator comes up with is the same as what my brother (my lender) gave me. So it must be compound interest, I guess? I'm hoping that template will work, as it is designed to include payments above the minimum.

My brother's a financial whiz, so he should be able to look at the template and tell me if it is set up right. If not, I'll give the CUMIPMT a try. Using your example, if the 13th payment reduced the principle to 9800, then the formula for the interest on the 14th payment would be CUMIMPT(5.5%/23;60;9800;14;14;0), is that right?

Sorry to be so dense about this, but it has been a long time since I've had to calculate compound interest, and never with a spreadsheet app before.

Lorinda


Last edited by Lorinda on Fri Jun 29, 2007 6:21 am; edited 1 time in total
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Fri Jun 29, 2007 5:53 am    Post subject:

Lorinda wrote:
My brother's a financial whiz, so he should be able to look at the template and tell me if it is set up right. If not, I'll give the CUMIPMT a try. Using your example, if the 13th payment reduced the principle to 9800, then the formula for the interest on the 14th payment would be CUMIMPT(5.5%/23;60;9800;14;14;0), is that right?
Lorinda[/list]

If 5,5% is the annual interest rate, the formula for the 14th payment should be

CUMIMPT(5.5%/12;60;9800;14;14;0)

You have to divide 5,5% by 12 to get the monthly rate. The result is -36.20, thus you have to pay $36.20 for the interests.

Hope that helps, Ill not be at home, thus I'll be mute before 8 pm (local time Wink)

Jacqueline
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Fri Jun 29, 2007 6:24 am    Post subject:

Thanks for the correction, Jacqueline. I'm not sure why I typed "23" there; I did understand it was supposed to be 12.

I think I've got it now, and I'm not in a big hurry. My brother is out of the country at the moment, so I have to wait until he's back to have him look over the spreadsheet. In the meantime I'll do some experimenting with CUMIPMT.

Merci encore,

Lorinda
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Fri Jun 29, 2007 8:58 am    Post subject:

OK, here's what I have found:

For both CUMIPMT and IPMT, if the Present Value (Pv) is set for the loan balance at the end of the last period, I end up with a situation where the interest drops to $0 long before the end of the loan period.

Referring to the example above, if I set the Pv for payment 14 to 9800 (the principle balance after payment 13), and continue this way throughout the loan, the spreadsheet tells me I owe no interest for several of my last payments.

On the other hand, if I keep the Present Value at the amount of the original loan, the interest runs down at a slower pace, until I get to a small amount of interest on my last payment. Having looked at a couple of different loan templates made for OOo/Neo, they all use the original loan value for Present Value, regardless of the pay period. This does not seem consistent with the descriptions in the Function Wizard, but it does seem to be the only way it works. (an OOo problem, I know).

CUMIPMT and IPMT do give me slightly different values, too, but presumably that's because they are slightly different calculations.

The problem for me is that neither of these functions take into account any extra payments I make. Fortunately it looks like I've found another way to do this using the template I mention above.

This isn't really a question; I just I thought I'd report back for the sake of someone else who might come looking.

Lorinda
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Fri Jun 29, 2007 1:06 pm    Post subject:

Lorinda wrote:
OK, here's what I have found:

For both CUMIPMT and IPMT, if the Present Value (Pv) is set for the loan balance at the end of the last period, I end up with a situation where the interest drops to $0 long before the end of the loan period.
Lorinda

Hmm…
If I enter

CUMIPMT(5.5%/12;60;9800;60;60;0)
I get -0.85

If I enter

IPMT(5.5%/12;60;60;9800;0;0)
I get the same result, and that is normal.

Jacqueline
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Fri Jun 29, 2007 6:43 pm    Post subject:

Well, I moved my various calculations from separate sheets to columns on one sheet. After I did so, I discovered that the CUMIPMT and IPMT formulas came up with the same results. I must have had some little error in one of my previous sheets.

I also discovered that to do what I wanted with CUMIPMT/IPMT (i.e. to take extra payments into account) I needed to treat each new period as period 1 with the Present Value as the balance after the last payment. This gives me the same results (+/- a penny some months) as the formula in the template I found (which was APR/12*AB where AB is the actual balance after the previous payment.)

If you are interested in the sample spreadsheet I put together to compare all these options, you can download it here

In that particular test, the columns where the PV always refers to the balance after the last payment does not actually hit zero before the end of the total loan period, but the numbers are different. In my actual loan spreadsheet it dropped to zero before the end of payments because I am paying 24/times a year, not 12.

That said, I've got it figured out now, so you don't need to bother with the test document unless you don't understand what I said and/or you need to satisfy your own curiousity.

Thanks again, Jacqueline, for working with me on this. You are a very good teacher. Very Happy

Lorinda
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Sat Jun 30, 2007 2:21 am    Post subject:

Lorinda wrote:
If you are interested in the sample spreadsheet I put together to compare all these options, you can download it here

That said, I've got it figured out now, so you don't need to bother with the test document unless you don't understand what I said and/or you need to satisfy your own curiousity.
Lorinda

Sorry, I'm not able to download the sample
Error message:
We're sorry but we can't find HomePage you've requested Crying or Very sad
Maybe because I've no .mac account?
I PM you my email address so that you can send me the file, because I'm curious Smile

Happy for having helped you

Jacqueline
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Sat Jun 30, 2007 6:10 am    Post subject:

That's what I get for not testing the link. I didn't get the filename right, of all things. I've e-mailed you the test.

Just in case someone else stumbles upon this thread and wants to see the test, this is the correct link. I tested it this time and it works.

Lorinda

A question for a Council Member: is it possible/advisable to rename the thread (adding "and compound interest")? I'm just thinking it would make that easier to find in the future.
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Sat Jun 30, 2007 6:39 am    Post subject:

Lorinda wrote:
A question for a Council Member: is it possible/advisable to rename the thread (adding "and compound interest")? I'm just thinking it would make that easier to find in the future.


Done. You can do this by editing the subject of the first post in a thread.

-Oz
Back to top
jgd
Agent Smith


Joined: Feb 27, 2005
Posts: 1531
Location: France

PostPosted: Sat Jun 30, 2007 7:03 am    Post subject:

I'm sorry Lorinda, but I can't open the file Crying or Very sad

Jacqueline
Back to top
Lorinda
Captain Mifune


Joined: Jun 20, 2006
Posts: 2051
Location: Midwest, USA

PostPosted: Sat Jun 30, 2007 7:45 am    Post subject:

Oh dear! Somethiing has indeed gone wrong. I "tested" the link earlier only to the point of making sure that a download dialog appeared in Firefox. Embarassed

I just downloaded the file and, sure enough, I can't open it either. I first get a dialog asking me to choose a format; regardless of the format I choose, I get an input/output error or a read error.

I just tried opening the on my iDisk directly in Neo and the same thing happens. It worked fine yesterday. It must be related to my iDisk. Unfortunately, I didn't keep a local copy, I just worked off the iDisk. That's probably why the e-mailed file didn't work, either, as I just attached the copy on my iDisk.

I don't have time to recreate it today, but I might tomorrow. I'll send it to you if/when I get it done.

Sorry for all the trouble. Embarassed

Lorinda
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Releases All times are GMT - 7 Hours
Goto page 1, 2  Next
Page 1 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.