Hi,
Condition 4: B=-B i.e. if B is negative Condition 4 must be outermost in the nested if. If its priority is highest. I understood is correct then the solution given by @SUV 123 can be modified as below;
CKF1 = A>B * NOERR (NODIV ( ( A/B ) ) ) * 30
CKF2 = A<B * NOERR ( NODIV( ( ( A- B-B1)/B2 * 30 + 60) ) )
CKF3 = A=B * NOERR (NODIV( (A/B)))* 30
CKF4 - B<0 * 0 + B>0 * CKF1+CKF2+CKF3
Hope this gives you desired solution.
Regards,
Sucheta