Short answer:
Look at Zeus chart for thread concerned., to find the OD, and the depth of thread. ( d )
Hole size = OD – (2 x d )
If no Zeus chart (You really need as a ready reference )
Metric is easy. Hole is Nominal diameter – pitch
M20 ( Coarse ) is 20 x 2.5 mm pitch
Hole diameter is 20 – 2.5 = 17.5 mm This provides truncation to prevent Crest / Root interference.
For Imperial threads, Whit, or Unified, (And BA ) you need to look up the depth.
Many charts give the Tapping size.
For smaller sizes, (Unless a non standard pitch, or you don't have the Tap ) you just drill /bore to the tapping Size, and use Taps.
For odd ball pitches, you may well have to screwcut. The you are into calculating changewheel set ups, which an different ball game.
As a beginner, avoid that that if you can, until you have more experience, or a friend who will stand with you and guide. The experience will always stand in good stead.
Biting off a little bit more than you can chew is how you gain experience! We all do!
Howard