<?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 Using Rate Function to Calculate APR% for a Lease in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-Rate-Function-to-Calculate-APR-for-a-Lease/m-p/384669#M91874</link>
    <description>&lt;P&gt;I'm on SAS EG version 5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to use SAS Finance 'Rate' function to calculate the APR for a lease.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In excel the following formula works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=RATE(TERM,,SUM_PAYMENTS - FINANCED AMOUNT,LEASE_RESIDUAL,&lt;/SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;SPAN&gt;)*12;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a lease with the following values the APR is 2.89%&lt;/P&gt;&lt;P&gt;FINANCED_AMOUNT&amp;nbsp;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;31050.45&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;LEASE_RESIDUAL =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;22452&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;TERM =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;24&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;SUM_PAYMENTS =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;9856.83&lt;/STRONG&gt;;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I attempt the same formula using the SAS RATE function in a data step, I get a '.' result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for a way to fix this formula or a different function that would get me to the same APR excel does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 16:06:11 GMT</pubDate>
    <dc:creator>Neville</dc:creator>
    <dc:date>2017-08-01T16:06:11Z</dc:date>
    <item>
      <title>Using Rate Function to Calculate APR% for a Lease</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Rate-Function-to-Calculate-APR-for-a-Lease/m-p/384669#M91874</link>
      <description>&lt;P&gt;I'm on SAS EG version 5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to use SAS Finance 'Rate' function to calculate the APR for a lease.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In excel the following formula works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=RATE(TERM,,SUM_PAYMENTS - FINANCED AMOUNT,LEASE_RESIDUAL,&lt;/SPAN&gt;&lt;STRONG&gt;0&lt;/STRONG&gt;&lt;SPAN&gt;)*12;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a lease with the following values the APR is 2.89%&lt;/P&gt;&lt;P&gt;FINANCED_AMOUNT&amp;nbsp;=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;31050.45&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;LEASE_RESIDUAL =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;22452&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;TERM =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;24&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;SUM_PAYMENTS =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;9856.83&lt;/STRONG&gt;;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I attempt the same formula using the SAS RATE function in a data step, I get a '.' result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for a way to fix this formula or a different function that would get me to the same APR excel does.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Rate-Function-to-Calculate-APR-for-a-Lease/m-p/384669#M91874</guid>
      <dc:creator>Neville</dc:creator>
      <dc:date>2017-08-01T16:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rate Function to Calculate APR% for a Lease</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-Rate-Function-to-Calculate-APR-for-a-Lease/m-p/384757#M91944</link>
      <description>&lt;P&gt;Please show the code you were attempting. It may help to provide what kind of "RATE" you are looking for since Finance stuff has a plethora of rates.&lt;/P&gt;
&lt;P&gt;If you used the Finance('RATE', ....) function that calculates the interest rate of an annuity. Is that what you wanted? It seems unlikely given the name of your variables Financed_Amount and Lease_residual&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 19:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-Rate-Function-to-Calculate-APR-for-a-Lease/m-p/384757#M91944</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-01T19:24:49Z</dc:date>
    </item>
  </channel>
</rss>

