The formula
new sensitivity = old sensitivity × old DPI ÷ new DPI
Example: 0.27 at 800 DPI → 0.135 at 1600 DPI. Double the DPI, halve the sensitivity. This works the same in every game, because the game's own scaling stays unchanged.
Which DPI should I use?
800 or 1600 is a sensible choice for most players. A different DPI doesn't make you aim better on its own; what matters is the combination with your sensitivity. More in Best DPI for FPS games.
Remember that your Windows cursor speed changes with your DPI too.