`inventory_.quantity()` and `birth_factor_` are both doubles, the product of which is being cast to an int. This is likely wrong.