working on avg dates