Shortened preferred vendor funciton by extracting sales_per_day and only calling it once.