<?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: Creation the formula of Compound interest through  DO loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231688#M42174</link>
    <description>&lt;P&gt;You're missing principle= in your formula and your brackets don't quite make sense. Also raising it to the power of 10 doesn't make sense to me...&lt;BR /&gt;&lt;BR /&gt;The following runs, but I don't think its what you want:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CI;

principle=100000;

rate=0.10;

do year=1 to 10;

principle=principle+principle*((1+0.10)**10);

output;
end;

format principle dollar21.2;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 26 Oct 2015 17:14:44 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-10-26T17:14:44Z</dc:date>
    <item>
      <title>Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231672#M42171</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in the Analytics. I want to learn most of the concept. i am working on basics of do loop. but i am not able to create the formula for Compound interest. Kindly Help me in this Matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;codes are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data CI;&lt;BR /&gt;&lt;BR /&gt;principle=100000;&lt;BR /&gt;&lt;BR /&gt;rate=0.10;&lt;BR /&gt;&lt;BR /&gt;do year=1 to 10;&lt;BR /&gt;&lt;BR /&gt;principle+principle{(1+0.10)**10};&lt;BR /&gt;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 16:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231672#M42171</guid>
      <dc:creator>Purushottam</dc:creator>
      <dc:date>2015-10-26T16:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231682#M42172</link>
      <description>&lt;P&gt;I would strongly recommend looking in the online help for the Financial functions. Depending on the type of compounding but there is the Finance function, Mort, Saving and Yield that do a variety of different interest function calculations.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231682#M42172</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-10-26T17:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231687#M42173</link>
      <description>&lt;P&gt;Dear, How can be Take the online help in Finance&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231687#M42173</guid>
      <dc:creator>Purushottam</dc:creator>
      <dc:date>2015-10-26T17:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231688#M42174</link>
      <description>&lt;P&gt;You're missing principle= in your formula and your brackets don't quite make sense. Also raising it to the power of 10 doesn't make sense to me...&lt;BR /&gt;&lt;BR /&gt;The following runs, but I don't think its what you want:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CI;

principle=100000;

rate=0.10;

do year=1 to 10;

principle=principle+principle*((1+0.10)**10);

output;
end;

format principle dollar21.2;

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231688#M42174</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-26T17:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231692#M42175</link>
      <description>&lt;P&gt;GOOGLE: SAS 9.4 FINANCE FUNCTIONS&lt;BR /&gt;&lt;BR /&gt;First Hit:&lt;BR /&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p1cnn1jwdmhce0n1obxmu4iq26ge.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p1cnn1jwdmhce0n1obxmu4iq26ge.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Third Hit:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/67960/HTML/default/viewer.htm#p0w6napahk6x0an0z2dzozh2ouzm.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:20:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231692#M42175</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-26T17:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231693#M42176</link>
      <description>&lt;P&gt;Dear Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am very thankful for your coding. thses are really working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks a lot again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 17:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231693#M42176</guid>
      <dc:creator>Purushottam</dc:creator>
      <dc:date>2015-10-26T17:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creation the formula of Compound interest through  DO loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231700#M42179</link>
      <description>&lt;P&gt;Hi, as suggested, a function ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;data ci (keep=period principle);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;retain initial 100000 rate 0.10;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;do period=1 to 10;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; principle = compound(initial, . , rate, period);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; output;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;end;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;format principle dollar10.;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;period&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; principle&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $110,000&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $121,000&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $133,100&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $146,410&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $161,051&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $177,156&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $194,872&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $214,359&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $235,795&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $259,374&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;your formula (via Reeza's code), very generous if savings, usury if a loan ...&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;year&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; principle&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $359,374.25&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $1,291,498.49&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $4,641,312.95&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $16,679,683.42&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $59,942,486.52&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $215,417,858.97&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $774,156,306.45&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $2,782,118,389.25&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp; 9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $9,998,216,984.47&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $35,931,016,902.39&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 18:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creation-the-formula-of-Compound-interest-through-DO-loop/m-p/231700#M42179</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2015-10-26T18:18:40Z</dc:date>
    </item>
  </channel>
</rss>

