How to make parameters functions of other parameters?
In the parameter set, edit expressions defining a parameter.
Here you can make it a function of other parameters, such as setting it to max(P1,P2).
There are many functions available, such as floor(arg), ceil(arg), sin(arg), and more as detailed in the documentation.