Maybe you should just pass Math.max(0, estimated)? When can it be negative?