Formula Question | WordPress.org

[ad_1]

Hello @helloplanetat

Thank you very much for using our plugin. I don’t know the values you want to sum in “Then add the two values together”. But if you are referring to summing the min_value/2+max_value

Assuming the input fields in your form are:

Elevation gain, fieldname1
Distance, fieldname2

And the equation in the calculated field:


(function(){
let v1 = fieldname1/300,
v2 = fieldname2/3;

return MIN(v1,v2)/2+MAX(v1,v2);
})()

However, if you are referring to min_value/2+min_value, the equation would be:

MIN(fieldname1/300,fieldname2/3)*1.5

Best regards.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer