3 ms·
> If the tax is associated directly with sugar in some manner than diet sodas won't be taxed. Running with this idea, there'll eventually be a federal conversi
by x-complexity 4y ago
> If the tax is associated directly with sugar in some manner than diet sodas won't be taxed.
Running with this idea, there'll eventually be a federal conversion table where any given chemical would be translated to their mass in sugar. From there, tax calculation's simply:
sum((sugar_conversion_lookup[ingredient] * mass) for ingredient in product) * tax_per_gram_of_sugar