transform unit of days