How many x% accurate tests to be >y% confident in result

No.11605378 ViewReplyOriginalReport
Brainlet here
Just curious how one would go about solving this math problem
Not homework, I'm just curious about the COVID tests
I've heard the PCR's that are being used for the most part are around 70% accurate

So for example, how many times would you need to take that test to be, say >90% confident in the result?

Also would be curious about a more general way to solve that like in the subject line