Added dates to task and fixed recindex calculation method