Nitin is paid a base salary of $300 per week and commission at the rate of 2.5% for sales over $5000, 4% if his sales are over $10,000, and 4.5% if sales are over $25,000. How much will Nitin earn in a week in which his sales are $20,000?