inital code to find the min price for a day.