Calculating sample size for a desired margin of error