Wage garnishment

I need to garnish a wage if the before tax amount is greater than 300 dollars.

If it is then the amount that is over the 300 dollar amount will be with held at a rate of 50% to a maximum of 100 dollars.

If the answer is to create a macro, I have no problem but then the next question will be how.

Cheers,

Andrew.