Do you want to calculate the sample size which will produce a certain margin of error or rather calculate the margin of error associated with a certain sample size?

Do you want to calculate the sample size which will produce a certain margin of error or rather calculate the margin of error associated with a certain sample size?