Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44329 > unrolled thread

Libroffice PMT equivalent in python

Started byஆமாச்சு <amachu@amachu.me>
First post2013-04-25 16:16 +0530
Last post2013-05-04 21:05 -0700
Articles 4 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Libroffice PMT equivalent in python ஆமாச்சு <amachu@amachu.me> - 2013-04-25 16:16 +0530
    Re: Libroffice PMT equivalent in python Michael Marshall <mikefromgreenburghnewyork@gmail.com> - 2013-05-04 20:37 -0700
      Re: Libroffice PMT equivalent in python Michael Marshall <mikefromgreenburghnewyork@gmail.com> - 2013-05-04 20:55 -0700
      Re: Libroffice PMT equivalent in python Michael Marshall <mikefromgreenburghnewyork@gmail.com> - 2013-05-04 21:05 -0700

#44329 — Libroffice PMT equivalent in python

Fromஆமாச்சு <amachu@amachu.me>
Date2013-04-25 16:16 +0530
SubjectLibroffice PMT equivalent in python
Message-ID<mailman.1054.1366886971.3114.python-list@python.org>
Hi,

Are there equivalent in any Python libraries that could match function
like PMT in libreoffice?

Refer: https://help.libreoffice.org/Calc/Financial_Functions_Part_Two#PMT

--

Amachu

[toc] | [next] | [standalone]


#44723

FromMichael Marshall <mikefromgreenburghnewyork@gmail.com>
Date2013-05-04 20:37 -0700
Message-ID<ff8fbc4b-6864-471e-a8c1-cf6919fc3749@googlegroups.com>
In reply to#44329
On Thursday, April 25, 2013 6:46:01 AM UTC-4, ஆமாச்சு wrote:
> Hi,
> 
> 
> 
> Are there equivalent in any Python libraries that could match function
> 
> like PMT in libreoffice?
> 
> 
> 
> Refer: https://help.libreoffice.org/Calc/Financial_Functions_Part_Two#PMT
> 
> 
> 
> --
> 
> 
> 
> Amachu

The PMT function in spreadsheet programs (Excel, OpenOffice Calc, LibreOffice Calc, Symphony Calc, Gnumeric) and in pocket financial calculators (Texas Instruments BA II plus, HP 10B II, Casio Fc 100, 200) will provide an answer for the initial (periodic) payment. Whereas depending on the value of number of periods NPER there may be 5 different payments as explained below

0) the periodic payment
This is the payment that is in constant amount and is paid or collected over the life of investment assuming the number of periods are in whole and do not have a fractional part

If the number of periods have a fractional part such as 10.5 years of 119.25 months then besides the initial periodic payment, there may be 4 different last payments to choose from

1) Balloon payment
When the NPER has a fraction, then the last payment may be made or collected at the last full time period for example if NPER is 10.5 then the balloon payment is made at the end of year 10 where you pay the periodic payment plus the remaining principal and the interest due

2) Actual last payment
When the NPER has a fraction, you may opt to pay or collect the last payment at the actual time period. For example if NPER is 10.5 then you will make or collect the last payment at the end of 10 years and 6 months. This last payment will be the principal remaining after making 10 payments and will also include the interest on remaining principal

3) Drop payment
When the NPER has a fraction, you may opt to pay or collect the last payment at the end of the next full year. For example if NPER is 10.5 then you will make or collect the last payment at the end of 11 years. This last payment will be the principal remainining plus the interest on it

4) Partial period payment
But then if the NPER has a fraction, you may still opt to pay or collect the payment at the actual time period but the amount you pay is the fraction of time period times the remaining principal. Thus if the NPER is 10.5 you make the last payment at the end of 10 years and 6 months in amount of 0.5 * remaining_principal

Now the present value of the periodic payments plus the last payments from case 1, 2, 3 comes out to be the same as the loan amount. But this is not the case if we use payment from case number 4, in this instance the lender collects a few extra bucks from the borrower.

Excel financial functions were copied from those found in Lotus 123 and the financial functions in OpenOffice Calc, LibreOffice Calc, Symphony Calc are copies from Excel.

This Excel PMT function http://tadxl.com/excel_pmt_function.html offers the options of finding any of the 5 different payments as explained in the previous paragraphs. And it even goes further and finds all periodic payments when payments are growing, shrinking, increasing or decreasing. In this last case there may be as many different payments as there are number of periods. All this is part of tadXL add-in http://tadxl.com/

[toc] | [prev] | [next] | [standalone]


#44724

FromMichael Marshall <mikefromgreenburghnewyork@gmail.com>
Date2013-05-04 20:55 -0700
Message-ID<b6a851cf-12dd-46f4-b79e-bd5ea8f800e0@googlegroups.com>
In reply to#44723
On Saturday, May 4, 2013 11:37:17 PM UTC-4, Michael Marshall wrote:
> On Thursday, April 25, 2013 6:46:01 AM UTC-4, ஆமாச்சு wrote:

> If the number of periods have a fractional part such as 10.5 years of 119.25 months then besides the initial periodic payment, there may be 4 different last payments to choose from
> 


EDIT

There was a typo in my text

I meant to write

If the number of periods have a fractional part such as 10.5 years OR 119.25 months

[toc] | [prev] | [next] | [standalone]


#44725

FromMichael Marshall <mikefromgreenburghnewyork@gmail.com>
Date2013-05-04 21:05 -0700
Message-ID<a95612b1-8f4c-49d7-bc33-a66b5c923a0c@googlegroups.com>
In reply to#44723
On Saturday, May 4, 2013 11:37:17 PM UTC-4, Michael Marshall wrote:

> 4) Partial period payment
> 
> But then if the NPER has a fraction, you may still opt to pay or collect the payment at the actual time period but the amount you pay is the fraction of time period times the remaining principal. Thus if the NPER is 10.5 you make the last payment at the end of 10 years and 6 months in amount of 0.5 * remaining_principal
> 

EDIT 

Meant to write

But then if the NPER has a fraction, you may still opt to pay or collect the payment at the actual time period but the amount you pay is the fraction of time period times the periodic payment. Thus if the NPER is 10.5 you make the last payment at the end of 10 years and 6 months in amount of 0.5 * periodic_payment

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web