Code that takes an decimal array of ranges and returns the value that must be sold to get that inputted commision