# Trying to set the max value for a field.

• 0
• Question
• Updated 4 months ago
• In Progress
I've been using this formula: Min([Value]-[Value Used] , 40) which displays the max at 40. However the actual value of the field continues to go beyond 40. if the actual value is 43 and i subtract 1, it shows as 40 instead of 39. am i using the wrong formula?
• 40 Points

Posted 4 months ago

• 0
• 72,106 Points Can you say in words what you want the formula to do?
• 40 Points
the formula takes a vacation balance, subtracts a number days used to deliver the total available. The max available will always be 40.

it works currently, however instead of capping at 40 it only displays 40 instead of the higher value.
• 72,106 Points Sorry,

I’m still not understanding what you want the formula to do. Perhaps you can explain with two examples using numbers and the result you want.
• 40 Points
X-Y=Z.
Z cannot exceed 40.
• 72,106 Points From your description of the problem it looks like you are using Max instead of Min, , despite the fact that you posted that you were using Min in your formula.

If you were actually using Min, I suggest that you double check what values are actually in those two fields that are in the formula.