Labels like "ppm" and "dKH" are only examples. The maths works in any unit if you use the same one throughout.
Free calculator by ScapeMath. Method, worked examples and sources on the full page.