Compound Interest Calculation?
Feb 6, 2011Im a little stuck with the Compound Interest Formula.
My code returns
0.00 :L
Dim amount, interest, monthly As Double
[code].....
Im a little stuck with the Compound Interest Formula.
My code returns
0.00 :L
Dim amount, interest, monthly As Double
[code].....
I have to create a Compound Interest Loop where I input a Mortgage amount and Mortgage Term (ie how many years the mortgage will span into another.) into two textboxes.
View 14 RepliesI'm experimenting with linq compount selects. I find the following query not to return any element:
Dim q = From s In d.GetChildRows("DossierSinistri") _
From i In s.GetChildRows("DossierIncarichi") _
Select s
[Code].....
I am trying to search a datatable using a compound key. I can create the compound key just fine, but when I go to create an object to pass to the find it give me an error. Below is a sample of my code.
dim lblDT...etc...
Here is where I create the compound key, and it seems fine.
lblDT.PrimaryKey = New DataColumn() {
lblDT.Columns("serialno"), _
lblDT.Columns("type")}
This is where I am trying to create an object to pass to the .find
dim objSearch As New Object() {10643, 28}
It if would work this is how the find would be.
Dim row As DataRow = lblDT.Rows.Find(objSearch)
EDIT: was a design issueI am undergoing a computing project for Alevel computing.The project consists of a 6 tabled Microsoft access database. I am using vb.net to code the application for a student tracking system.My ERD is below:My problem: How to insert a new compound Primary key into a existing table?If I increment StudID and CourseID in tblContact then I need to increment them in tblStudentCourse which leads to records not pointing to the right directions..For enforcing the relationships I am using the .relations with the dataset.
'Student - StudentCourse
DS.Relations.Add(New DataRelation("StudStudCorRelation", DTStudents.Columns("StudID"), DTStudentCourses.Columns("StudID"), True))
[code].....
I need to store a calculation to use later and obtain a new calculation
[Code]...
I need to modify this code to add 1% interest rate to the new and used rates when less than a 20% down payment is made.
Public Class Form1
' Class-level constants
Const dblMONTHS_YEAR As Double = 12 ' Months per year
[code]......
I,ve completed a program for a debt solution agency that calculates the amount a client can afford to repay after all his deductions and general life costs, my proplam however is at the end when i have to display all the creditors on a proposal data grid that shows the amount and total months to repay all creditors and calculates the amounts as one of the creditors debt is paid up and that monthly installment is devided between the remaining creditors.
View 1 RepliesI need to modify this code to add 1% interest rate to the new and used rates when less than a 20% down payment is made.
I've already added in the constants for the increased interest rate, but hit a wall there.
Public Class Form1
' Class-level constants
Const dblMONTHS_YEAR As Double = 12 ' Months per year
[Code].....
I am trying to program that is based on calculating the loan based on the balance of an item after the deposit. Then I must display certain information in a listbox. I am having a problem
Dim buyername As String
Dim cartype As String
[code]....
I am stuck, I am doing a Case Statment and this loop to calculate pay per hour and thexpected raise percentage on 40 hr week @ 52 wks per yr. THe raise increase each amount after the first year.The display for next 10 years is the head bump. Any suggesions will be tried. In this loop trying to get the 1 year values to add the intrest rate to the following 10 years is something I can not seePrivate Sub btnCalculatePay_Click(ByVal sender As System.Object, ByVal e As ystem.EventArgs) Handles btnCalculatePay.Click
View 4 RepliesIm creating an interest rate calculator that will make sure the principal is a positive amount, retrieve the interest rate from the interest rate:numericupDown function and will leave a message in the resulttextbox.This is what i have so far:
Public Class InterestCalculatorForm
' handles Calculate Button's Click event
Private Sub calculateButton_Click(ByVal sender As System.Object, _
[code].....
I have successfully written this interest calculation, although it is based on the ppmt function and adding up the interest from each payment. This is quite a long looping process.. And it is not accurate because of the rounding of each payment. I was wondering if someone knows if there is a formula I can use, or if the pmt function is capable of this? (e.g. Mortgage payment - total interest payable over 30 years at 5% ( principle and interest repayments))?
View 1 RepliesI am working on a program that takes a present value, multiplies it by an interest rate (between 1 and 25 percent), multiplies the resultant answer by a specified number of periods and produces a listbox breakdown of value accumulation for each period. I was doing just fine. UNTIL. yeah, until......I don't really know when...... I am trying to specify that the interest rate must be between .01 and .25 (user has to enter it as a decimal on the GUI) or a Message Error box pops up. However, it seems that everywhere I drop my code, it doesn'
vb.net
Private Sub mnuClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuClear.Click
[code]....
I am writing this program for class its supposed to be able to accept loan amount interest rate amount and the term of the loan (in years) and then output how much interest you owe and how much in total you owe.
Here is my code:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
'Declare Variables
Dim loanAmount As Double
Dim interestRate As Double
[Code] .....
I copied the whole code as to I do not know where the rros are. My error keeps saying 'class' statement must end with a matching 'end class' I got a feeling this is something like if/endif but I cannot find it.
I am working on a calculator that does the annual percentage rate. The code has to use a For Loop (which I am new to). This is the code I have so far.
[Code]...
Hi how's it going. In the middle of coding a banking application for a project. Part of it involves mortgage interest repayments. Was wondering if there was any way of logging the time a new record was created and added to the database and then adding interest to the balance owed periodically every 30 days..
View 3 RepliesI need to code this with 20% down payment 2.5% closing costcash required to close the loan Principal and interest can be computed by call the PMT function, terms 30 years (360 months 2.5% Property tax 0.8% insurance monthly payment is equal to the sum of the principal and interest, property tax and insurance.
I have attached my project.
I am not getting any input from my teacher and the book does not say much about this
Attached File(s)
Heres my code in vb 2008[code]...
I need to add 15% vat to it and i have no clue how to add the 15% vat.
compute an exact age of a person using the format date of mm/dd/yy... in vb.net, i was trying to code it but the result was not the exact age of the person.lp me...
View 11 RepliesI am using Microsoft Visual Studio 2008 with VB.NET, and in class we were assigned this project: A procedure should calculate a 2% price increase on all red shirts, but a 1% price increase on all other items. In addition to calculating the price increase, the procedure also should calculate the new price. You can use the variables strItemColr, strItem, decOrigPrice, decIncrease, and decNewPrice. Format the original price, price increase, and new price in the lblOriginal, lblIncrease, and lblNewPrice controls, respectively.
View 1 RepliesI have datagridview, wich have 5 columns
example:
id supplier bought payed sum
1 a 15
2
2 a 20
[Code].....
i have an issue with my program. when i create a function and use a calculation in it it returns a wrong answer. if i copy the calculation and put it directly in the btnClick event it works ok. is this normal?
here is the code if you would like to try see what i am doing wrong.
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[code].....
I'm having trouble with a calculation in VB and it's a simple one but for some reason I keep getting an output of zero.
Here's the code for the calculation and the click button:
CODE:
i have this problem on how to calculate the amount due in our system in VISUAL BASIC.NET .in returning module, (this is for penalty purposes), if the borrower didn't return the book on time, the system must automatically generate the amount due .one daY is equivalent to 10(ten) pesos.so if the borrower didn't return the book with 2 days. the amount due must be 20.00 pesos.
View 6 RepliesI have two money fields in a SQL database called TotalClaimed and PartialSettlementAmountRecd.They are declared as Decimals like so:
Public PartialSettlementAmountRecd As Decimal
Public TotalClaimed As Decimal
They both output the repsective amounts perfectly. I need to do a calculation on them, by subtracting PartialSettlementAmountRecd from TotalClaimed. I have tried the following, but it just outputs a random number, not the amount I require.
Dim NewSettAmount As Decimal = (ClaimDetail.TotalClaimed) - (ClaimDetail.PartialSettlementAmountRecd)
Response.Write("New Settlement Amount: £" & NewSettAmount)
I found this thread in regards to calculating CRC16 on an array.... however, it does not work probably because it was written for VB6 and not .NET. [URL] Does anyone know of a built-in function in .NET to calculate CRC16? If not, is there a way I can adapt the above VB code example to work with Visual Studio 2010?
View 12 Replieswhat i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code i am using doesnt seem to be doing anything could anyone spot it and tell me why it is not working for me
[Code]...
i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code.[code]I want the answer doesnt display in the textbox as i want it but when i click on the text box nd type anything the answer shows but in the error
View 6 RepliesDevelop an application which reads two integers n1 and n2 from the user via two textboxes and displays in a label the sum of the factorial of the integers n1 and n2?
View 3 Replies