Calculates the net amount for the specified amount (that is supposed to include a sum calculated by the associated scale/step).
This method returns the result of
grossAmount - max(minAmount, min(maxAmount, diff)) with diff = (grossAmount - onTopAmount) / (1 + percentage / 100)
given that a
maxAmount
is set. If there is no such max value, the
min()
operation is omitted.
the supposed net amount as BigDecimal