Calculate batting average from hits and official at-bats, or find the whole number of hits needed across a future at-bat span to reach a target AVG.

Use hits and official at-bats from the same player or team scope. Plate appearances are a different denominator.