now incorporates end dates so tasks aren't back-to-back