Passing calculation values to another field using conditions