<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Time Value of Money &#8211; Excel PMT in JavaScript and PHP</title>
	<atom:link href="http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/</link>
	<description>software engineering, entrepreneurship, music - by Ivan Tumanov</description>
	<lastBuildDate>Fri, 16 Jul 2010 08:43:31 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: David C</title>
		<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/comment-page-1/#comment-7603</link>
		<dc:creator>David C</dc:creator>
		<pubDate>Sat, 15 May 2010 15:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://tumanov.com/blog/?p=243#comment-7603</guid>
		<description>just determined how to get payment at beginning of period ...

intPayment = -(intInterestRate * intPrincipal * Math.pow((1 + intInterestRate), intMonthCount - intFlagPmtBegPeriod) / (1 - Math.pow((1 + intInterestRate), intMonthCount)));

I changed the variable names, and added the negative sign, but otherwise same as original, except for the flag.

// intInterestRate = Interest rate per month (.05 / 12, .06 / 12, .07 / 12, ...).
// intPrincipal = Amount to borrow.
// intYearCount = Number of years to pay back loan.
// intFlagPmtBegPeriod = Whether payment occurs at beginning of period (month).  1 = Yes.  0 = No.</description>
		<content:encoded><![CDATA[<p>just determined how to get payment at beginning of period &#8230;</p>
<p>intPayment = -(intInterestRate * intPrincipal * Math.pow((1 + intInterestRate), intMonthCount &#8211; intFlagPmtBegPeriod) / (1 &#8211; Math.pow((1 + intInterestRate), intMonthCount)));</p>
<p>I changed the variable names, and added the negative sign, but otherwise same as original, except for the flag.</p>
<p>// intInterestRate = Interest rate per month (.05 / 12, .06 / 12, .07 / 12, &#8230;).<br />
// intPrincipal = Amount to borrow.<br />
// intYearCount = Number of years to pay back loan.<br />
// intFlagPmtBegPeriod = Whether payment occurs at beginning of period (month).  1 = Yes.  0 = No.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupert Millard</title>
		<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/comment-page-1/#comment-5983</link>
		<dc:creator>Rupert Millard</dc:creator>
		<pubDate>Thu, 04 Mar 2010 14:28:52 +0000</pubDate>
		<guid isPermaLink="false">http://tumanov.com/blog/?p=243#comment-5983</guid>
		<description>This is really helpful - thank you.</description>
		<content:encoded><![CDATA[<p>This is really helpful &#8211; thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stuart</title>
		<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/comment-page-1/#comment-5032</link>
		<dc:creator>Stuart</dc:creator>
		<pubDate>Wed, 27 Jan 2010 08:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://tumanov.com/blog/?p=243#comment-5032</guid>
		<description>In php - 
return $i * ($p * pow((1 + $i), $n) + $fv) / (1 - pow((1 + $i), $n));

will allow for &quot;future value&quot; functionality - Don&#039;t forget to add the $fv variable into your function call

These equations works for payment in arrears only.. Still scratching my head as to how to formulate the PMT as a payment in advance.

Thanks for the article. It&#039;s been the backbone of calculator I&#039;ve been trying to complete.</description>
		<content:encoded><![CDATA[<p>In php &#8211;<br />
return $i * ($p * pow((1 + $i), $n) + $fv) / (1 &#8211; pow((1 + $i), $n));</p>
<p>will allow for &#8220;future value&#8221; functionality &#8211; Don&#8217;t forget to add the $fv variable into your function call</p>
<p>These equations works for payment in arrears only.. Still scratching my head as to how to formulate the PMT as a payment in advance.</p>
<p>Thanks for the article. It&#8217;s been the backbone of calculator I&#8217;ve been trying to complete.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ?????????</title>
		<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/comment-page-1/#comment-2185</link>
		<dc:creator>?????????</dc:creator>
		<pubDate>Sun, 27 Sep 2009 08:27:16 +0000</pubDate>
		<guid isPermaLink="false">http://tumanov.com/blog/?p=243#comment-2185</guid>
		<description>Thnaks alot!</description>
		<content:encoded><![CDATA[<p>Thnaks alot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BeN</title>
		<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/comment-page-1/#comment-2071</link>
		<dc:creator>BeN</dc:creator>
		<pubDate>Tue, 22 Sep 2009 15:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://tumanov.com/blog/?p=243#comment-2071</guid>
		<description>Hi, i spend a lot of time trying to make this (in php) and many hours on google looking for this. Thankssssssss</description>
		<content:encoded><![CDATA[<p>Hi, i spend a lot of time trying to make this (in php) and many hours on google looking for this. Thankssssssss</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brokencode</title>
		<link>http://tumanov.com/blog/2009/05/time-value-of-money-excel-pmt-in-javascript-and-php/comment-page-1/#comment-1250</link>
		<dc:creator>brokencode</dc:creator>
		<pubDate>Sat, 15 Aug 2009 14:09:02 +0000</pubDate>
		<guid isPermaLink="false">http://tumanov.com/blog/?p=243#comment-1250</guid>
		<description>thanks for sharing. how about PV and Fv function to calculate annuity.</description>
		<content:encoded><![CDATA[<p>thanks for sharing. how about PV and Fv function to calculate annuity.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
