The formula used is: Coffee Weight (g) = Water Volume (ml) / Brew Ratio
For example, if you have a brew ratio of 1:15, you divide the water volume by 15 to get the coffee weight.
Example 1: If you want to brew 300ml of water with a 1:16 ratio, you need 18.75g of coffee.
Example 2: If you have 20g of coffee and a 1:17 ratio, you need 340ml of water.
Example 3: If you have 250ml of water and want a 1:18 ratio, you need 13.89g of coffee.