original  calculation skipped last day