Formulae are more are or less similar and will yield a sample size.
The important thing is the objective and as per the objective we can calculate thesample size and there are many a online sample size calculators are available, you can give a try at STATULATOR
The formula for sample size determination depends on the confidence level, margin of error, standard deviation, and population size. One common formula is: Sample Size = [z2 * p (1-p)] / e2 / 1 + [z2 * p (1-p)] / e2 * N501. Another formula is: n= ( {Zα/2σ}/E)2, where n is the sample size, Zα/2 is the z-score for the desired confidence level, σ is the standard deviation, and E is the margin of error.