<?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: How do I use a Do Loop on an adjusted rate loan? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603427#M174827</link>
    <description>&lt;P&gt;Here's the logic wrapped in a do loop:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data payments;
  principal=85000;
  do month=1 by 1 until (principal=0);
    *depending upon principal set yearly rate;
    *calculate one-month interest using principal and rate;
    *establish payment size (either $500 or current principal + interest, whichever is smaller);
    *using old principal, payment size, and calculated interest, calculate new principal
    *output a record, if wanted;
  end;
  * After the loop, from the value of MONTH, generate the number of years (it's a long time)
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 12 Nov 2019 04:41:31 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2019-11-12T04:41:31Z</dc:date>
    <item>
      <title>How do I use a Do Loop on an adjusted rate loan?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603294#M174804</link>
      <description>&lt;P&gt;$85,000 federal student loan at annual interest rate of 7% and a payment of $500 every month. When the principal hits $50,000, the annual interest rate drops to 5%. When the principal gets down to $30,000, the annual interest rate drops to 3%. using a Do Loop how would I calculate how many years it would take to pay off the loan?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 18:03:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603294#M174804</guid>
      <dc:creator>matoma</dc:creator>
      <dc:date>2019-11-11T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a Do Loop on an adjusted rate loan?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603331#M174808</link>
      <description>&lt;P&gt;Variations on this question have been asked quite a few times.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want help with this, you probably have to do a little more of the work.&amp;nbsp; For example, write a program that calculates the balance remaining after 1 month.&amp;nbsp; That way, it becomes apparent that you are not just looking for somebody to do your homework for you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 19:58:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603331#M174808</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-11-11T19:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use a Do Loop on an adjusted rate loan?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603427#M174827</link>
      <description>&lt;P&gt;Here's the logic wrapped in a do loop:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data payments;
  principal=85000;
  do month=1 by 1 until (principal=0);
    *depending upon principal set yearly rate;
    *calculate one-month interest using principal and rate;
    *establish payment size (either $500 or current principal + interest, whichever is smaller);
    *using old principal, payment size, and calculated interest, calculate new principal
    *output a record, if wanted;
  end;
  * After the loop, from the value of MONTH, generate the number of years (it's a long time)
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2019 04:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-a-Do-Loop-on-an-adjusted-rate-loan/m-p/603427#M174827</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-11-12T04:41:31Z</dc:date>
    </item>
  </channel>
</rss>

