fix off by one error for the current day, extract method to get offsetted day