<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: counting interest in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164917#M12717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody remember PROC LOAN?&amp;nbsp; It's part of SAS/ETS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/ets/ex_code/131/loags.html" title="http://support.sas.com/documentation/onlinedoc/ets/ex_code/131/loags.html"&gt;SAS/ETS User's Guide Example Programs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 17:05:01 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2014-09-30T17:05:01Z</dc:date>
    <item>
      <title>counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164913#M12713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends please help me to count interest rate &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some discrepancy in counting interest rate with Bank calculator and with SAS&lt;/P&gt;&lt;P&gt;I am counting interest for &lt;STRONG&gt;$9000.00&lt;/STRONG&gt; @ &lt;STRONG&gt;2.49%&lt;/STRONG&gt; for &lt;STRONG&gt;12 month&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;Bank is giving me monthly payment $&lt;STRONG&gt;760.00&lt;/STRONG&gt; which would be &lt;STRONG&gt;$9120.00&lt;/STRONG&gt; at end of the 12 months (so basically i am paying 120 more than actual amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where as if i use below code i am getting something different...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;data test;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; capital=9000;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interest_rate='2.49%';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt; do month=1 to 12;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interest=2.49/100*capital;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; capital+interest;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt; end;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;/*12TH OBS WILL BE &lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3366ff;"&gt;11796.113263&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #3366ff;"&gt; 2.49%&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #3366ff;"&gt; 12&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #3366ff;"&gt; 293.72322026&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data test2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; capital=9000;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interest_rate='2.49%';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; do month=1 to 12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interest=capital*.12/12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; capital+interest;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;12TH OBS WILL BE &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;10041.01512&lt;/TD&gt;&lt;TD&gt;2.49%&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;100.4101512&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this happening coz of my code is adding interest every time when its counting interest for amount...? if so how can i do "&lt;STRONG style="color: #ff0000;"&gt;capital-interest&lt;/STRONG&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 20:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164913#M12713</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-29T20:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164914#M12714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the interest rate 2.49 per month? Or did you take an annual rate and divide by 12?&lt;/P&gt;&lt;P&gt;In either case you might want to look in the documentation for financial functions. Payment seems to imply that you may be paying down a loan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at:&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; payment=mort(9000, ., .0249/12,12);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;This seems to match the bank as a loan of 9000, with annual rate of 2.49% compounded monthly(the /12) for 12 months.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 20:39:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164914#M12714</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-29T20:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164915#M12715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Ballardw for yr quick response but is there a way i can see payment per month in your case...so basically instead seeing only one obs i want to see 12 obs in your code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 20:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164915#M12715</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-29T20:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164916#M12716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to provide some details as to what you are actually trying to do. If it is a loan repayment then the results of the MORT function I posted are the likely monthly payment, the same value, for each of 12 months. So you could either put the function inside a do loop of month=1 to 12 with an output statement inside the loop or just multiply the result by 12 for a total.&lt;/P&gt;&lt;P&gt;There are other financial functions that you may want to investigate such as CUMIPMT, cumulative interest payment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 22:33:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164916#M12716</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-29T22:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164917#M12717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody remember PROC LOAN?&amp;nbsp; It's part of SAS/ETS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/ets/ex_code/131/loags.html" title="http://support.sas.com/documentation/onlinedoc/ets/ex_code/131/loags.html"&gt;SAS/ETS User's Guide Example Programs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 17:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164917#M12717</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-09-30T17:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164918#M12718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not everyone has ETS though...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 18:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164918#M12718</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-09-30T18:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: counting interest</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164919#M12719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ballardw and Chris...i got the answer...using ETS and Mort function....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 20:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/counting-interest/m-p/164919#M12719</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-30T20:03:22Z</dc:date>
    </item>
  </channel>
</rss>

