Now, many people have personal housing loans, or will have personal housing loans. So let's use C # to write a calculator that calculates the repayment schedule for personal housing loans.
The calculator can calculate the repayment schedule according to the loan amount, the loan period, the loan date, the repayment method and the type of loan, as shown in the figure above.
In this way, it is easy to know how much money to pay each month, so far the remaining number of loans have not yet, the end of the amount of loans to pay interest, and so on.
The loan interest rate is determined by the type of loan and deposited in the Loancalculator.xml document:
<?xml version= "1.0" encoding= "Utf-8"?>
<LoanCalculator>
<option balance= "13.8" months= "180" date= "2004-07-23" "method=" and other principal and interest "item=" Provident Fund/>
<items>
<item title= "Provident Fund" >
<rate date= "1001-01-01" low= "3.6" high= "4.05"/>
<rate date= "2005-01-01" low= "3.78" high= "4.23"/>
<rate date= "2006-01-01" low= "3.96" high= "4.41"/>
<rate date= "2007-01-01" low= "4.14" high= "4.59"/>
<rate date= "2008-01-01" low= "5.04" high= "5.22"/>
<rate date= "2009-01-01" low= "3.33" high= "3.87"/>
</item>
<item title= "Commercial benchmark" >
<rate date= "1001-01-01" low= "5.51" high= "5.75"/>
<rate date= "2007-01-01" low= "5.51" high= "5.81"/>
<rate date= "2008-01-01" low= "6.579" high= "6.65"/>
<rate date= "2009-01-01" low= "5.76" high= "5.94"/>
</item>
<item title= "Commercial discount" >
<rate date= "1001-01-01" low= "5.51" high= "5.75"/>
<rate date= "2007-01-01" low= "5.51" high= "5.81"/>
<rate date= "2008-01-01" low= "6.579" high= "6.65"/>
<rate date= "2009-01-01" low= "4.03" high= "4.16"/>
</item>
</items>
</LoanCalculator>