remove dead code
group spec
calculate end date relative to start date