Calculation Field Giving Null Value & Conditions Not Working Correctly