Calculating the shaded area