There’s a solution right on that page, in the expandable section at the bottom.
It’s the bulk of the exercise to come up with the formula, so there’s no much difference between posting a formula and posting a full solution.
The solution is just the rule of three. Nothing else. You have to do that exercise on a piece of paper first like in school to see that this is the solution.