• Resolved nuwebdesign

    (@nuwebdesign)


    Hi there,

    Great plugin. I’m currently working on a website for a title company and they want a closing quote calculator and this is exactly what I was looking for. I’m trying to figure a way how to have it calculate percentages since they vary. I have a link to our dev section where this is at here.

    What I need to have it do is take X percent from the Sales Price and subtract that number from the sales price. The formula I tried using was:

    fieldname1-(fieldname1-(0.1*(fieldname4))-fieldname3

    But it doesn’t work and I’m still getting use to the plugin so I don’t know how to get it to work. Any help would be great.

    Thanks!

    https://wordpress.org/plugins/calculated-fields-form/

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

    (@codepeople)

    Hi,

    If you want substract the X percent of a number, from the same number, the equation would be:

    number*(1-X/100)

    For example, if the number is 10, and you want substract the 20 percent of 10, the equation would be:

    10*(1-20/100) = 10*0.8 = 8

    Best regards.

    Thread Starter nuwebdesign

    (@nuwebdesign)

    I just realize I need it to do one more step. I need a way for it to increase the decimal for how big the sale price is. An example is if the sale price is less than or equal to 10,000 , then it would be 0.01 * the percentage. But if the sale price is 100,000 or greater, it would be 0.1 * the percentage. Is there anyway to accomplish this?

    Thread Starter nuwebdesign

    (@nuwebdesign)

    That helped get me the percentage of the sale price! Thanks! However now I’m trying to creating a formula that will subtract that percentage from the sale price as well as well as the payoff.

    Thread Starter nuwebdesign

    (@nuwebdesign)

    Nevermind. Just got it! Thanks!

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