Calculating values using proportions and ratios