Write Personal housing Loan calculator in C #

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.