Calculating ratios and percentages of shaded areas