Use this IRS calculator for withholding allowances - https://www.irs.gov/payments/tax-withholding
Or this TurboTax W-4 calculator - https://turbotax.intuit.com/tax-tools/calculators/w4/