The calculation is the number of items sold at the sale price multiplied by the normal price, and subtracting the sale price. The frame displays from the start of the batch to the end of the batch, or if the batch has not expired, up until the last store close.