calculating the day with the minimum spread