[enter image description here][1] Based on the condition I got two ways to compute 1. [enter image description here][2]
2. [enter image description here][3]
I am so confused about which one is correct