• Resolved bmartin3211

    (@bmartin3211)


    I have 3 options.

    Number of bedrooms – fieldname3
    Number of bathrooms – fieldname4
    Frequency (weekly, bi weekly, monthly) – fieldname6 – these are % off. Weekly is 20% off for this example.

    and then it displays the total – fieldname1

    I need it to add fieldname3 and fieldname4, then take fieldname1 which is the result number from those two, and find what the fieldname6 numbers % is, so for this example 20 is the digit, so it needs to find out what 20% of fieldname1 is, then minus that number since its 20% of the total cost discount.

    I am struggling to figure it out. I tried to do it this way.

    (fieldname3+fieldname4)-(fieldname1*fieldname6/100)

    But this does not calculate the correct number.

    Can someone help me please =]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @bmartin3211

    I’m sorry, but I don’t understand your description.

    If you want the remaining percentage, the equation would be simply:

    
    (fieldname3+fieldname4)*(1-fieldname6/100)
    

    I don’t understand why you need the fieldname1 field.

    If you need additional help implementing your equation, I can offer you a custom coding service from my private website:

    https://cff.dwbooster.com/customization

    Best regards.

    Thread Starter bmartin3211

    (@bmartin3211)

    Thanks.

    That worked perfect, now for some reason the book now button is not linking to the link I put in.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to calculate percentage’ is closed to new replies.