Prices

</br>

Ideal Weight Calculator

This sample uses a simple formula but with a conditional rule (if male or female). The conditional expression is built using the JavaScript ternary operator. It's basically as follows: condition ? value_if_true : value_if_false.
In centimeters
Formula used:
Men: (height - 100)*0.90
Woman: (height - 100)*0.85
Note: Based in the above data and formula