edit calculate