What it is
A gacha pity calculator works out the exact chance of getting a target within n pulls when the game ramps the hit rate (soft pity) and guarantees a hit at a fixed pull (hard pity). It uses dynamic programming and convolution rather than random sampling, so the numbers are exact.
When to use it
Use it when tuning drop rates for a roguelite or gacha game, or when checking what the unluckiest players will experience and spend before you ship the numbers.
Gotchas & limits
The average hides the tail. Look at P95, P99 and the worst case, not just the mean, and remember the plain formula 1−(1−p)^n ignores pity and overstates how long players wait.