fixed days count in edit field