<?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: Additional loan amortization table question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598195#M172480</link>
    <description>&lt;P&gt;Well, the mort function worked for me when I ran your sample code.&amp;nbsp; Strange.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK, now what about for irregular loan terms and payment frequencies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a loan with a 9 month term that has a weekly payment frequency. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I write the code (.75 for 3/4ths of a year to capture the 9 month term and the 39 weekly payments&lt;/P&gt;
&lt;P&gt;for the payment frequency) as such:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data loan_xxx;&lt;/P&gt;
&lt;P&gt;mort&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;payment=mort(900, . , 4.9969736/12, .75*39);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;I get a payment amount that is much higher than the coupon. Let me know if I'm taking the non-traditional&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;units for loan term and payment frequency into account properly. Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 18:02:26 GMT</pubDate>
    <dc:creator>greg6363</dc:creator>
    <dc:date>2019-10-21T18:02:26Z</dc:date>
    <item>
      <title>Additional loan amortization table question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598177#M172469</link>
      <description>&lt;P&gt;I have created a manual program to create a loan amortization table since my SAS license does not have the financial functions.&amp;nbsp; Now my question is how to integrate both loan term and payment frequency into the program.&amp;nbsp; Accounts pay weekly, bi-weekly semi-monthly or monthly (12, 24, 26 or 52 total payments) on either a six month, nine month or twelve month loan term. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;data amort_form_main;&lt;BR /&gt;FundAmount=XXXX;&lt;BR /&gt;APR=X.XXXXXX;&lt;BR /&gt;N=XX;&lt;FONT style="background-color: #ffffff; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;/*PmtFreq*/&lt;/FONT&gt;&lt;BR /&gt;Balance=FundAmount;&lt;BR /&gt;APR_Rate=APR/N;&lt;BR /&gt;NPER=ceil(N*(9/12));/*LoanTerm*/&lt;BR /&gt;DO i=1 to NPER;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PMT= (APR_RATE + APR_RATE/(((1+APR_RATE)**NPER) -1))*FundAmount;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BALANCE= BALANCE*(1+APR_RATE) - PMT;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTEREST=BALANCE*APR_RATE;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PRINCIPAL=PMT-INTEREST;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUT;&lt;BR /&gt;END;&lt;BR /&gt;Format PMT BALANCE INTEREST PRINCIPAL DOllAR21.2;&lt;BR /&gt;RUN;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="background-color: #ffffff;"&gt;I wanted to see if I am taking the loan term and the payment frequency into account correctly within this program in order to make sure the loan payment is broken down correctly between the principal and the interest components..&amp;nbsp; Any feedback would be greatly appreciated.&amp;nbsp; Thanks.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 17:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598177#M172469</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-10-21T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Additional loan amortization table question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598181#M172472</link>
      <description>&lt;P&gt;I understand that you may not have access to Proc Loan but none of the Finance functions? What version of SAS are you running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure that you do not have access to the MORT function?&lt;/P&gt;
&lt;P&gt;Try running this code and show us the log result.&lt;/P&gt;
&lt;PRE&gt;data have;
   payment=mort(50000, . , .10/12, 30*12);
run;&lt;/PRE&gt;
&lt;P&gt;If data have has a value of Payment in the 438.79 range then you have the financial function you may need.&lt;/P&gt;
&lt;P&gt;The above figures the monthly payment for a loan of $50000 at 10% compounded monthly for 30 years.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 17:25:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598181#M172472</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-21T17:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Additional loan amortization table question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598195#M172480</link>
      <description>&lt;P&gt;Well, the mort function worked for me when I ran your sample code.&amp;nbsp; Strange.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK, now what about for irregular loan terms and payment frequencies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a loan with a 9 month term that has a weekly payment frequency. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I write the code (.75 for 3/4ths of a year to capture the 9 month term and the 39 weekly payments&lt;/P&gt;
&lt;P&gt;for the payment frequency) as such:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data loan_xxx;&lt;/P&gt;
&lt;P&gt;mort&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;payment=mort(900, . , 4.9969736/12, .75*39);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;I get a payment amount that is much higher than the coupon. Let me know if I'm taking the non-traditional&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #eaeaea; color: #333333; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-wrap: normal; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px;"&gt;units for loan term and payment frequency into account properly. Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 18:02:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598195#M172480</guid>
      <dc:creator>greg6363</dc:creator>
      <dc:date>2019-10-21T18:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Additional loan amortization table question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598267#M172525</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21164"&gt;@greg6363&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Well, the mort function worked for me when I ran your sample code.&amp;nbsp; Strange.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OK, now what about for irregular loan terms and payment frequencies.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a loan with a 9 month term that has a weekly payment frequency. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I write the code (.75 for 3/4ths of a year to capture the 9 month term and the 39 weekly payments&lt;/P&gt;
&lt;P&gt;for the payment frequency) as such:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data loan_xxx;&lt;/P&gt;
&lt;P&gt;mort&amp;nbsp;&lt;SPAN style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; float: none; display: inline !important; white-space: pre; orphans: 2; background-color: rgb(234, 234, 234); -webkit-text-stroke-width: 0px; overflow-wrap: normal;"&gt;payment=mort(900, . , 4.9969736/12, .75*39);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; float: none; display: inline !important; white-space: pre; orphans: 2; background-color: rgb(234, 234, 234); -webkit-text-stroke-width: 0px; overflow-wrap: normal;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; float: none; display: inline !important; white-space: pre; orphans: 2; background-color: rgb(234, 234, 234); -webkit-text-stroke-width: 0px; overflow-wrap: normal;"&gt;I get a payment amount that is much higher than the coupon. Let me know if I'm taking the non-traditional&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-align: left; color: rgb(51, 51, 51); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: monospace,monospace; font-size: 1em; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; float: none; display: inline !important; white-space: pre; orphans: 2; background-color: rgb(234, 234, 234); -webkit-text-stroke-width: 0px; overflow-wrap: normal;"&gt;units for loan term and payment frequency into account properly. Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not a financial wizard but the /12 in the example is to turn an annual interest rate into a monthly. So I would suspect that you need to use additional calculation to get weekly (note: NOT 4 weeks per months), I think / 52.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Interest rate of 4% should be entered as 0.04. Notice the example I provided for 10% uses .10.&amp;nbsp;&amp;nbsp;And to get a weekly compounded interest rate you would divide by 52 from an annual rate.&lt;/P&gt;
&lt;P&gt;The last parameter should be an integer number of payment periods. So 39.&lt;/P&gt;
&lt;P&gt;Does this look more appropriate for a result?&lt;/P&gt;
&lt;PRE&gt;data loan_xxx;
   mortpayment=mort(900, . ,0.049969736/52, 39);
run;&lt;/PRE&gt;
&lt;P&gt;If you have some known rates and payments to check with then experiment.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 21:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Additional-loan-amortization-table-question/m-p/598267#M172525</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-21T21:07:24Z</dc:date>
    </item>
  </channel>
</rss>

