fix for less then zero value for days