FIFO Depth calculation