Let me start by saying I know absolutely NOTHING about javascript. I've got a one time problem and don't know where to start.
I'm trying to set up a semi-automated PDF for people at work to use. There is a quantity field and a 'fee' field. I'd like to put some javascript in the 'fee' field so that it calculates the price based on the quantity.
If it was straight quantity*price-per, it would be easy and I think I could do it myself. The problem is that the 'fee' is a combination of one price for the first thousand and a different price for each additional thousand or fraction thereof.
Example:
First 1,000 costs $5
Additional 1,000s or fractions thereof are $3
So a quantity of 4211 should cost:
$5 for the first thousand
$12 for the remainder (3 thousands + 211[counts as a thousand]= 4 thousands)
$17 in total
Any help would be greatly appreciated... especially considering I have no idea what I'm doing!
I'm trying to set up a semi-automated PDF for people at work to use. There is a quantity field and a 'fee' field. I'd like to put some javascript in the 'fee' field so that it calculates the price based on the quantity.
If it was straight quantity*price-per, it would be easy and I think I could do it myself. The problem is that the 'fee' is a combination of one price for the first thousand and a different price for each additional thousand or fraction thereof.
Example:
First 1,000 costs $5
Additional 1,000s or fractions thereof are $3
So a quantity of 4211 should cost:
$5 for the first thousand
$12 for the remainder (3 thousands + 211[counts as a thousand]= 4 thousands)
$17 in total
Any help would be greatly appreciated... especially considering I have no idea what I'm doing!