Fix bug with calculate holiday in history