ingredient fields calculation