ExKcal.Calc.adjust_amount

You're seeing just the function adjust_amount, go back to ExKcal.Calc module for more information.
Link to this function

adjust_amount(value, arg, current_amount \\ nil)

Specs

adjust_amount(struct(), weight() | volume(), weight() | volume() | nil) ::
  struct()

Super quirky function adjusting amount of product. I bet there are mistakes, corner cases not being covered and calculation issues!