I'm having problems constructing a formula for the following commission:

$200 and Under gets a 38% commission

plus (over $200)

$200 to $500 gets a 33% commission

plus if over $500 gets a 28% commission

Example #1: $355
$200 x .38 = $76 (first $200)
+
$150 x .33 = $49.50
=
TOTAL - $125.50

Example #2: $550
$200 x .38 = $76 (first $200)
+
$300 x .33 = $99 (next $300)
+
$50 x .28 = $14
=
TOTAL = $189

Can anyone help me with this formula?

Thank you so much.
Daryl Burns
626-303-0767