Calculating assignments.