converted dates to percentage.