Easier than you think. Value is stored at the end of the time increment processing. For example, 10 million liters. Next increment, the after all of the automated processes from this increment and the manual from last, the value is stored again. Compare the two entries. If A > B, then you have a decreasing supply. If B > A, then your supply is increasing.