Removed unneeded import and switched logic to no longer use day+1.