Calculate Time to Fill/Empty
The TimeToFillEmpty display the time required to fill the tank (if TankUtilizationRate > 0) or to empty the tank (if TankUtilizationRate < 0), assuming that the actual TankUtilizationRate will not change in the future.
The formula used is:
If TankUtilizationRate \> 0: TimeToFillEmpty = (TankAvalability) / DeltaStockRate
If TankUtilizationRate \< 0: TimeToFillEmpty = TankVolume / DeltaStockRate
Where:
TankAvalability = TankMaxVolume – TankVolume
TankVolume = Current Product Volume in the Tank (with 10min time shift).
TankMaxVolume = Total volume of the tank.