hi, need help in generating formula with this sales amount $457986.75 when

Commission of 2% is payable for the 1st $100,000 of sales.
above $100,000 and up to $300,000, a 3% commission is payable.
above $300,000 will get a commission of 4%.

Amount $457 986.75

Comission rate:
1st $100 000 = 2%
$100 000 - $300 000 = 3%
> $300 000 = 4%