charlesstricklin
Board Regular
- Joined
- May 6, 2013
- Messages
- 98
- Office Version
- 2021
- Platform
- Windows
I'd like to calculate the amount of withholding for the federal taxes based on the current IRS rates. I could use a nested IF statement, but I'd prefer something using the actual table provided by the IRS, making it easier to update when the new tax codes come out.
To wit, the single, biweekly withholding table:
[TABLE="class: grid"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: center"]Amount[/TD]
[TD="align: center"]Base[/TD]
[TD="align: center"]Percent[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]$96.00[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]10%[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]$480.00[/TD]
[TD="align: right"]$38.40[/TD]
[TD="align: right"]15%[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]$1,656.00[/TD]
[TD="align: right"]$214.80[/TD]
[TD="align: right"]25%[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]$3,877.00[/TD]
[TD="align: right"]$770.05[/TD]
[TD="align: right"]28%[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]$7,983.00[/TD]
[TD="align: right"]$1,919.73[/TD]
[TD="align: right"]33%[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]$17,242.00[/TD]
[TD="align: right"]$7,975.20[/TD]
[TD="align: right"]35%[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]$17,313.00[/TD]
[TD="align: right"]$5,000.05[/TD]
[TD="align: right"]40%[/TD]
[/TR]
</tbody>[/TABLE]
So, if a person's biweekly gross income is $2,000.00, they'd be taxed based on line 4:
$214.80 + (25% * ($2,000.00 - $1,656.00))
$214.80 + (25% * $344.00)
$214.80 + (25% * $344.00)
$214.80 + $86
$300.80
So, they'd be taxes $330.80 on a biweekly gross income of $2,000.00
If there a calculation to handle this table data?
To wit, the single, biweekly withholding table:
[TABLE="class: grid"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: center"]Amount[/TD]
[TD="align: center"]Base[/TD]
[TD="align: center"]Percent[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]$96.00[/TD]
[TD="align: right"]-[/TD]
[TD="align: right"]10%[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]$480.00[/TD]
[TD="align: right"]$38.40[/TD]
[TD="align: right"]15%[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]$1,656.00[/TD]
[TD="align: right"]$214.80[/TD]
[TD="align: right"]25%[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]$3,877.00[/TD]
[TD="align: right"]$770.05[/TD]
[TD="align: right"]28%[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]$7,983.00[/TD]
[TD="align: right"]$1,919.73[/TD]
[TD="align: right"]33%[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[TD="align: right"]$17,242.00[/TD]
[TD="align: right"]$7,975.20[/TD]
[TD="align: right"]35%[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[TD="align: right"]$17,313.00[/TD]
[TD="align: right"]$5,000.05[/TD]
[TD="align: right"]40%[/TD]
[/TR]
</tbody>[/TABLE]
So, if a person's biweekly gross income is $2,000.00, they'd be taxed based on line 4:
$214.80 + (25% * ($2,000.00 - $1,656.00))
$214.80 + (25% * $344.00)
$214.80 + (25% * $344.00)
$214.80 + $86
$300.80
So, they'd be taxes $330.80 on a biweekly gross income of $2,000.00
If there a calculation to handle this table data?