There seems to be two formulas for calculating confidence interval of a sample with a normal distribution (in both cases, $P$ refers to the sample proportion):
Method A:
$$P \pm \frac{1}{\sqrt n}$$ where $n$ is the population sample size
Method B:
$$P \pm z \cdot \sqrt{\frac{P (1-P)} n}$$
where $n$ is the population sample size and $z$ is the $z$-score radius for the intended confidence level (for example $1.96$ for $95\%$)
Which method should I use or when should I use each method?
What is the difference between the confidence level of the two formulae?
The first (method A) is OK if you're willing to assume $P \approx 1/2$ and the confidence level is 95% so that $z = 1.96\approx 2.$
If you plug $p = 1/2$ into the formula for method B, then the margin of error is $E = 1.96\sqrt{{.5(1-.5)}{n}} = 1.96\sqrt\frac{1}{4n} \approx 1/\sqrt{n}.$
If the true value of $p$ is unknown, then sometimes people use $p = 1/2$ in estimating $E$ because $p=1/2$ gives the largest possible $E.$ This is used often in public opinion polls. If the race between A and B is close then you need to interview about $n = 2500$ subjects for the margin or error to be $E = 0.02 = 2\%.$
[The parabola $y = x(1-x),$ for $0 < x < 1)$ has its maximum at $x = 1/2,\ y = 1/4.]$