Calculate minimum formula


I am new to Retool, and I am trying to build a basic formula for retool. Basically, I have this formula in excel: =min(MOU, Property value)*LTV.

I want to know how can I calculate the minimum value using two fields.

Hi, welcome to the community.
The javascript Math library has a min function that accepts any arguments or array of values, eg
Math.min(8,5,4,6,9) would return 4
You could pass in the properties to this function that you want to compare

It should be?

{{math.min (slider5.value, slider6.value) * currency5.value}}

Screen Shot 2023-04-26 at 11.51.09 AM

Uppercase M on Math :slight_smile:

It worked! Thank you a lot!