calculate recipe ratios