fixed forgotten step of summing days in replace_na