Input: Bonus $5,000, single, no prior withholding
Result: Federal tax about $500, Social Security $310.00, Medicare $72.50, total about $883, net bonus about $4,117. Your employer will more likely apply the flat 22% supplemental rate, which is $1,100 of federal tax and a net closer to $3,517.
Input: Bonus $20,000, single, no prior withholding
Result: Federal tax about $2,168, Social Security $1,240.00, Medicare $290.00, total about $3,698, net bonus about $16,302. At the flat 22% rate the federal withholding would instead be $4,400, leaving roughly $14,070 in the bank.
Input: Bonus $5,000, single, prior withholding $400
Result: The same $882.60 of tax less the $400 already withheld leaves about $483 more to withhold and a net bonus near $4,517. The prior withholding field credits against the calculation rather than adding to it.