Wrapped up the formula for the problem of the assignment.