It is a test to determine number of people you need to test in order to generalize the population , I find a calculator online and it give me exactly 217 sample size.

Unfortunately I check other sites, youtubes, it is difficult to follow how they are calculating the sample size.

How can I get the same output in the picture but manually ?