calculate finished