Hi to everyone !
I need your help to create a formula that do the following.

cell b5 if is less than 5000 then cell b10 *23
cell b5 if is greater than 5001 and less than 9999 cel b10*22
cell b5 if is greater than 10000 and less than 19999 cell b10*21
cell b5 if is greater than 20000 cell b10*20


I will apreciate your help. thank you in advance
Mikie