Simplify chunk number computation.