Data in the repository are SNAPSHOTS. The correct value would be computed as snapshot (n) minus snapshot (n-1).