calculate concentration