Monday, May 24, 2010

Need Help with Loan Calc Logic in C# for ASP.NET 2.0 App?

Hi!





I am coding a ASP.NET 2.0 mortgage calc app and need some help with the C# code required to perform the actual calcs. Here are the specs.





The following data is available:


- Selling price


- Down payment


- Interest rate (value between 0.0 and 1.0)


- Number of years


- Periods per year (12, 24, 52)


- Payment per period





Based on validation groups, I need to calc the following:


1. Payment per period using the following formula


payment = (Principle x Rate) / (1 - (1+Rate)) ^ -period


(or)


"Payment is equal to principle times rate divided by 1 minus (1 plus rate) to the negative period power"


2. Loan amount using the following formula


loanAmount = Payment *(1 - (1 + Rate)^-period)/Rate


(or)


"Loan amount is equal to payment times 1 minus (1 plus rate) to the negative period power divided by rate"





Any help is appreciated!

Need Help with Loan Calc Logic in C# for ASP.NET 2.0 App?
These people might be able to help you..


http://www.bleepingcomputer.com/





They gave me great help.


I hope this helps you.


Good Luck!

hollyhock

No comments:

Post a Comment