fix calculation of current day