this is a solid breakdown of the math behind it. i built a quit-smoking tracker recently (day 36 after 12y of smoking) and went through the same process of figuring out the edge cases - unit conversions, what to show vs what to hide. the WHO category boundaries are surprisingly nuanced when you actually implement them. nice work