Ranking when filling in dates