Hello
I have a program that i need to be able to figure out the tax rate, and then find out how much tax is owed to the customer.
There are a few tricks when doing this, there are many different shipping rates, that go from 3.95 to 4.95 5.95 etc.
So what I wanted to do was enter information from the invoice and have it automaticly caluclated.
Now this is the tricky part, if the customer ordered say 3 parts, i wanted to be able to find out the tax, then have another box where i could put in the price of the part(if they only returned 1 part instead of the whole order), and then have it figure out the tax on just that part.
So the first thing i need the to figure out is how to i figure out what percentage of tax was charged, then have that tax amount * it self by all the different shipping rates.
Then have another box where i can put in a single part price, and hit calcuate and get the tax on just that part.
Can you make up numbers and show exactly how you want it to work and how you arrive at your solution. And does it have to be in Visual Basic? From the sounds of it you can do everything here you want in excel, and add more stuff to it, and it would be easier to code and debug in excel in my opinion.
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!
Ok, someone returns a part to our warehouse, and i want to figure out how much tax i have to give them back, on the invoice it dosent show what the tax rate was, it was somehow calculated on our bigger mainframe program.
SO i get the invoice, it shows me the tax amount .68 and the sales amout (this is how much the part totals are) 4.52, and the invoice amount, which is the total of shipping sales amount and shipping and handling.
So what i want to do is first figure out what the tax rate is.
Then we have multiple shipping tiers depending on what type of account, we have 3.95 5.95 4.95 6.95 etc
I want to take that tax amount and figure out how much tax is due upon the shipping cost.
Then finally, i want to enter how much a single part is (in a seprate box), since there was 2 on the order, 1 part would be 2.26, so i want take that amount, enter it into a seprate box, and hit calcualte and it takes the tax rate and does its calcuation to figure out the tax rate on just that 1 part
Ok, So from what i can understand is you have a amount on the invoice for the prices of all items sold to them... and a total cost, which includes the price of all items sold, shipping and handling and tax. You want to take 1 item from that cost and then refund them the price the item costs and the tax they paid for that item? So if there were 2 items at 2.50 each, total 5 before shipping and handling and taxes. The tax Rate is 5% and the shipping and handling is $5.00. So the total would be 10.50 after taxes? Since the tax rate is applied to shipping and handling as well? So they come back to have the 1 item refunded at 2.50. You want to return 2.50 and the 5% tax on it. ( not refunding the shipping and handling charges and the taxes associated with that? ) So you would take the 2.50 + (2.50 * .05) = Refunded Amount? Is that correct?
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!
Yes, you almost got it, the thing is, it dosent give me there percetage of tax they were charge it just show me the amount, .63 etc.
Plus it dosent show me the shipping charges, i have to see what type of account they are and then figure out the tax on the shipping. so i was saying while it calculated the tax, it can also figure out the tax rate found and apply it to the different shipping tiers 4.95 5.95 7.85 12.95 etc. then i can just look down the list and say oh there it is
I did a quick program to illustrate what i think your asking. Im sure thats not all your after... Please explain what else your looking for please. See the attached file.
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!
The tax rate should be static. Just divide the amount taxed by the total, and multiply by 100 to get the percentage for the tax. I think I got around 15 whenI tried it earlier.
Maybe he's discovered a scheme to defraud the local government out of tax dollars, or a way for someone to profit from excesses paid? I'd check into it. Call the local authorities and ask them how to compute owed taxes.
Justin H. Thanks, that is about 95% of what I'm looking to do.
Now, all i want to do is take that tax % and figure out the tax on the different shipping tiers, so when they hit "Calculate tax" it will calculate the tax on the shipping rates aswell.
The different shipping rates are:
4.95, 5.95, 8.95, 10.95, 12.95
You are refunding the shipping and handling? Not that it matters, as we've said, the tax rate remains the same (static) for all items. Post the figures that you are trying to reproduce, and we will come up with the forumula to let you do it.
If you can get the right numbers using a calculator, then the app should be able to handle it as well.
Just posted an example, but I'd like to see actual numbers. Somethig appears to be missing between what you do and what you say you need.
Ok here is the excel spreed sheet I am looking at.
All that is on this excel spreed sheet the person needs to ender is:
Invoice
Sales Amount
Other (this is the price of the part)
You see how you dont have to enter the price of the shipping, it just calculates it on all the different shippings? Then you just look to see what type of account they are (we do here) and look at the right shipping.
Also, i get the correct amount back if i go Sales Amount + Sh to put in the total order box in the program justin made. But you cant calcualte tax like that right?
Justin H. Thanks, that is about 95% of what I'm looking to do.
Now, all i want to do is take that tax % and figure out the tax on the different shipping tiers, so when they hit "Calculate tax" it will calculate the tax on the shipping rates aswell.
The different shipping rates are:
4.95, 5.95, 8.95, 10.95, 12.95
Like that?...
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!
You get your tax percent from total amount sold * amount taxed. So If your total amount sold was just the sales amount and Shipping and handling then yes that would be the correct tax amount. As for which program is right. Im not sure, the differences your getting, how big are they? The program i made uses the tax before its rounded or anything to find the tax on the shipping and handling. So, im not sure which youd want.
Last edited by Justin H.; Jun 6th, 2005 at 11:56 AM.
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!
Ok here is an old invoice i pulled up. But it dosent show how much was credited because that was no an old system we used that we no longer have access to.
Part price was 4.49 (only 1 part on order)
Tax on order was .68
S&H was 3.95
Sales amount was 4.49
Invoice total amount was 9.12
Just use a calculator and then make up some numbers that work, then use them with the excel sheet and see what results you get, then use them with the program see what results you get and then match them up with the calculator to see whos right and which you want to use...
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!
Ok its incorrect, the way i check is.
I take the tax percentage that was calcualted and then * it by the sub total, so it should make .68 tax but it dosent it way less.
So tax amount was .68
Then S&H was 3.95
Sales amount is 4.49
Invoice amount is 9.12
SO if i take the the tax % found by the program its: 7.46%
Then i take that and * it by Sales amount + s&h, this should give me the the tax of .68 cents, but it dosent.
I think the excel spreed sheet is wrong, i think it calculates the tax% by adding s&h + sales amount then / by the tax amount. and thats wrong. because you need to figure out the % from the whole invoice amount correct?
So in excel they have it:
S&H + Sales Amount / tax
In the VB Program:
Invoice AMount / tax
' this way seems to be correct
you're sounding like a broken record....We know how you're checking it.
Maybe you should explain in better detail what you want. Or possibly post this in the math section of the forums, as this isnt really a programming question.
If you look at the excel spreed sheet, and you put in the data i put above, it seems that it dosent calculate the tax and the "other" amount correctly.
Well that could be because im not taking the rounded version of the tax percent to do the calculations, which, depending on how it was rounded, (up or down) can throw it off a penny. If the invoice is using it the same way as the excel sheet then your numbers will be the same, if you want those results, then you just need to take the rounded version instead of the unrounded version to do your calculations. The program is more accurate, but if compared to another program you do to your invoice theres no way to know. But that would be my guess....
Have a Great Day....Hope that helps
Justin
Live
Learn
Then Use VBCode Brackets and Rate people if it helped you!