Calculation is delivering inconsistent results
-
Hi
Our form sometimes delivers the correct calculation and at other times, it doesn’t – even with the same inputs. Essentially, it should calculate a sales fee that is 1% of the property value down to a minimum fee of £1500. So even if the property value is less than 150000, it should still return £1500. If the customer confirms that they are an existing customer then it should apply a fee of 0.8% of the property value down to a minimum fee of £1200. The Property value field has ID=2, there’s a hidden fee percentage field ID=20 and it’s set to 0.01. The existing/new customer radio field (ID=15) has a value of .8 for yes (an existing customer) and 1 for no (new customer). Then we have a first step calculation that produces the maximum of two numbers – either 1500 or 1% of the property value like this MAX((fieldname20*fieldname2),1500) and then we have second step that applies the discount in the event that it’s an existing customer by multiplying by 0.8 if they are an existing customer and 1 if they are not PREC(fieldname15*fieldname14,2)
Having done lots of tests today on the form, we’ve had a test using a property value of £11,000, where they were a new customer, returning a value of £0. We’ve had a property value of 200000 and an existing customer returning a value of 1200 which should have been 1600 and again two tests for 200000 for a new customer returning a value of 1500 on two occasions and 2000 on one occasion (2000 being the correct answer). Please can you advise as to what’s going wrong here? Many thanks. Jamie
The page I need help with: [log in to see the link]
- The topic ‘Calculation is delivering inconsistent results’ is closed to new replies.