fixing calculation on cache hit formulas