calc_sample_sizes function

Calculate sample sizes