O
orrbill
My Problem is similar to a tax table that has a rate for differen
incremental levels of income. I have been told that an array using I
statements may be the solution, if some one has a solution or can tel
me where to look for a solution I would be most grateful.
My objective is to develop a function to calculate the amount for eac
level and then sum the total and divide by the quantity for a over al
% 64 is Input Value
From/To Rate table
0-19 *40%
20- 39 *30%
40- 69 *20%
70- 79 *10%
More than 80 *12%
For Example by hand it would be
From/To
1st Level 0 to 19 =19 *40% = 7.6
2nd Level 20 to 39 =19 *30% = 11.7
3rd Level 64-38 =26 *20% = 1.2
4th Level 0 = 0 *10% = 0
5th Level 0 = 0 *12% = 0
Total value = 64
sum of rates = 20.5
Divide by Value 64
Equals Over all Rate 32%
32%*64 = 20.
incremental levels of income. I have been told that an array using I
statements may be the solution, if some one has a solution or can tel
me where to look for a solution I would be most grateful.
My objective is to develop a function to calculate the amount for eac
level and then sum the total and divide by the quantity for a over al
% 64 is Input Value
From/To Rate table
0-19 *40%
20- 39 *30%
40- 69 *20%
70- 79 *10%
More than 80 *12%
For Example by hand it would be
From/To
1st Level 0 to 19 =19 *40% = 7.6
2nd Level 20 to 39 =19 *30% = 11.7
3rd Level 64-38 =26 *20% = 1.2
4th Level 0 = 0 *10% = 0
5th Level 0 = 0 *12% = 0
Total value = 64
sum of rates = 20.5
Divide by Value 64
Equals Over all Rate 32%
32%*64 = 20.