minor refactor to expose adjusted enddate