[accessor] Calculating end date to avoid exception.