add mathematical calculation if 2nd condition is met