The general equation is:
Holemmc - Shaftmmc = Tolhole + Tolshaft + C
Where:
Holemmc = Hole at MMC size
Shaftmmc = Shaft at MMC size
Tolhole = Location tolerance of hole
Tolshaft = Location tolerance of shaft
C = Mating Clearance at MMC (if required)
See: Mechanical Tolerance design and Calculators
and specifically:
Fixed Fastener Condition Tolerance Calculator