|
-
Aug 17th, 2012, 07:59 PM
#1
Thread Starter
New Member
10 year pay caculator (calculation problem)
Dim decwage As Decimal
Dim decraise As Decimal
Dim decWagePerYear As Decimal
For intYear As Integer = 1 To 10
If Decimal.TryParse(txtHourlyWage.Text, decwage) AndAlso Decimal.TryParse(txtRaise.Text, decraise) Then
decWagePerYear += decwage * 2080
decwage *= (decraise / 100)
LstYearPay.Items.Add(" Year " & intYear & " Annual Salary " & decWagePerYear)
End If
Next
I'm trying to get this code to add the difference in pay for the next 10 years. Unfortunately it is taking the percent and multiplying that by the pay for the year. Can anyone help me with what I'm doing wrong.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|