<?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 finding loan balance in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591199#M8001</link>
    <description>&lt;P&gt;I have been given this task below can someone help me understand what I have to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You are considering taking out a loan that requires monthly payments. The loan is $10000 and has simple interest of 0.25% per month.&amp;nbsp; Your payment is $100 per month.&amp;nbsp; Create data steps that will calculate the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Your loan balance after 10 payments.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The number of payments you’ll need to make until the loan is paid off.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The number of payments you’ll need to make if you increase the payment to $125 every other month (starting with 2nd month).&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;For each, show for each month, the starting loan balance for the payment, the interest charge (calculated before the payment), the payment amount, and the ending balance&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded all the data sets&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Load Orders Data */
data work.orders;
  infile "C:/Users/100355202/Desktop/Orders(3).txt" dsd dlm="09"x firstobs=2;
  input OrderID CustomerID $ EmployeeID 
        OrderDate :mmddyy10. RequiredDate :mmddyy10. ShippedDate :mmddyy10.
        ShipVia Freight ShipName :$100. ShipAddress :$100. ShipCity :$100. ShipRegion :$100. 
        ShipPostalCode :$100. ShipCountry :$100.;
  format OrderDate mmddyy10. RequiredDate mmddyy10. ShippedDate mmddyy10.;
run;

/*Load Order Details data */
data work.orderdetails;
  infile "C:/Users/100355202/Desktop/OrderDetails(1).txt" dsd dlm="09"x firstobs=2;
  input OrderID ProductID UnitPrice Quantity Discount;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 15:43:15 GMT</pubDate>
    <dc:creator>genius99</dc:creator>
    <dc:date>2019-09-24T15:43:15Z</dc:date>
    <item>
      <title>finding loan balance</title>
      <link>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591199#M8001</link>
      <description>&lt;P&gt;I have been given this task below can someone help me understand what I have to do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You are considering taking out a loan that requires monthly payments. The loan is $10000 and has simple interest of 0.25% per month.&amp;nbsp; Your payment is $100 per month.&amp;nbsp; Create data steps that will calculate the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Your loan balance after 10 payments.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The number of payments you’ll need to make until the loan is paid off.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;The number of payments you’ll need to make if you increase the payment to $125 every other month (starting with 2nd month).&lt;/STRONG&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;For each, show for each month, the starting loan balance for the payment, the interest charge (calculated before the payment), the payment amount, and the ending balance&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have loaded all the data sets&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Load Orders Data */
data work.orders;
  infile "C:/Users/100355202/Desktop/Orders(3).txt" dsd dlm="09"x firstobs=2;
  input OrderID CustomerID $ EmployeeID 
        OrderDate :mmddyy10. RequiredDate :mmddyy10. ShippedDate :mmddyy10.
        ShipVia Freight ShipName :$100. ShipAddress :$100. ShipCity :$100. ShipRegion :$100. 
        ShipPostalCode :$100. ShipCountry :$100.;
  format OrderDate mmddyy10. RequiredDate mmddyy10. ShippedDate mmddyy10.;
run;

/*Load Order Details data */
data work.orderdetails;
  infile "C:/Users/100355202/Desktop/OrderDetails(1).txt" dsd dlm="09"x firstobs=2;
  input OrderID ProductID UnitPrice Quantity Discount;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 15:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591199#M8001</guid>
      <dc:creator>genius99</dc:creator>
      <dc:date>2019-09-24T15:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: finding loan balance</title>
      <link>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591202#M8002</link>
      <description>&lt;P&gt;Just to get you moving ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's good that you know how to load your data sets.&amp;nbsp; But those data sets are not related to the questions you have to solve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a beginning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   balance = 10000;
   balance = balance * 1.0025 - 100;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;This math computes the remaining balance after 1 month.&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; Now it's up to you to figure out how to extend the logic for multiple months.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 16:16:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591202#M8002</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-09-24T16:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: finding loan balance</title>
      <link>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591208#M8003</link>
      <description>&lt;P&gt;does this calculate the Balance after 10 payments?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 16:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/finding-loan-balance/m-p/591208#M8003</guid>
      <dc:creator>genius99</dc:creator>
      <dc:date>2019-09-24T16:04:17Z</dc:date>
    </item>
  </channel>
</rss>

