Calculate Tank Bias Quantity
The TankBiasQuantity displays the percentage of the tank total volume that is filled with the product. It is calculated by adding the current Delta Stock at every case, and a rest if there is a Transfer or a change in the alarm condition.
If no transfers are involved in tank (otherwise is set to 0), the following formula is used:
TankBiasQuantity = PrevTankBiasQuantity + DeltaStock
Where:
PrevTankBiasQuantity = TankBiasQuantity at previousCase.
If an Input or Output transfer is involved in the tank, the following formula is used:
TankBiasQuantity = 0.