fix bug wrt to dates being after w8e

happened on weekends only, it turns out