I also do not understand the problem. With the suggestion by GPEngine you're printing the maximum from 32 to 36 days ago.