min max
Version 1.12.35, probably earlier versions too, encounters this issue.
The following expressions:
max(min(O13,H13)-F13,0)
and
max(min(O13-F13,H13-F13),0)
show very different values when cell O13 is blank.
When the cell contains a number they are the same.