473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Mortgage Calculation using C# .Net

I am not sure if this is the appropriate forum for the
question.Hopefully any discussion will be of use to C# developers
involved in financial systems.

I have calculated monthly payment (Capital And Interest payments) for a
bank loan. Below is the formula:

Double dIntRate= 6.5/100;
Double dYears = 20;
Double dV= 1/1-dIntRate;
Double dX= Math.Pow(dV,dYears);
Double dA = (1-dX)/(dIntRate/100);
Double dAnnualCapAndInterestPayment = dLoanValue/dA;
Double dMonthlyPayment = dAnnualCapAndInterestPayment/12;

I need to list, for each of the (20*12) months, the amount of interest
for each monthly payment. Can someone help me with the formula I might
need to achieve this (alternatively how much capital contibutes to each
monthly payment.

Thanks in advance.

Nov 17 '05 #1
1 4098
Hi Grant,

The following web pages demonstrates an Amortization calendar, and has links
to documentation that explains how the formulas are derived and applied in
it:

http://ray.met.fsu.edu/~bret/amortize.html

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
If you push something hard enough,
it will fall over.
- Fudd's First Law of Opposition

"Grant_S" <su*************@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I am not sure if this is the appropriate forum for the
question.Hopefully any discussion will be of use to C# developers
involved in financial systems.

I have calculated monthly payment (Capital And Interest payments) for a
bank loan. Below is the formula:

Double dIntRate= 6.5/100;
Double dYears = 20;
Double dV= 1/1-dIntRate;
Double dX= Math.Pow(dV,dYears);
Double dA = (1-dX)/(dIntRate/100);
Double dAnnualCapAndInterestPayment = dLoanValue/dA;
Double dMonthlyPayment = dAnnualCapAndInterestPayment/12;

I need to list, for each of the (20*12) months, the amount of interest
for each monthly payment. Can someone help me with the formula I might
need to achieve this (alternatively how much capital contibutes to each
monthly payment.

Thanks in advance.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mark r | last post by:
anyone know a source of uk mortgage rates for different providers in one feed? something thats updated pretty frequently would be nice! TIA Mark
4
by: promiscuoustx | last post by:
The problem is that my code below used to run wonderfully, until the instructor decided that he wants to use characters instead of integers, and wants my code to trap the bad and have the program...
3
by: promiscuoustx | last post by:
I am trying to get my program to compile, but it will not complete. At line 79 it states, cannot convert 'float()()' to 'float' in assignment. Here is my code. #include <iostream> #include...
3
by: cameron | last post by:
Hi I am new here in this forum: I am writing a C++ program to calculate a Montly Mortgage Payment where the loan amount is 200,000.00 with a 5.75% interest rate with a term of 30 years. My program...
2
by: phjones | last post by:
Need help programming mortagage calculator for 3 different loans 7 year, 15 year and 30 year. using java array I am a beginner with Java, This is what I have so far. Need to know if I am off the...
1
by: phjones | last post by:
please help resolve some error messages code is compling with errors see below the code. I am new at this please help! /** * @(#)3 Mortgage loans.java * * 3 Mortgage loans application * ...
1
by: phjones | last post by:
This is not a class project.The program below is to display mortgage interest paid for each payment over the term of the loan and loan balance.It is program using array. However, I am receiving the...
3
by: ghostrider | last post by:
I'm trying to get this program to calualte the totals of 3 different mortgages using arrays.I need the program to calculate the loans to the end of each term. Can someone point me in the right...
1
by: dylbin | last post by:
I am having trouble with the following program: Without using a G.U.I., using a loan amount of $200,000 with an interest rate of 5.75% and a 30 year term, I have to display the mortgage payment...
1
by: wenczmastah | last post by:
Hey everyone, I just recently finished a new design for the company am working with, i am still learning webdesign and I would love to get some feedback from fellow web designers the website is :...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.