The formula is correct.
The actual problem is that AssignR is not being passed as a valid Double (likely 0 or Nothing), causing the entire expression to result in 0.
Log the value of R before calculation and ensure it is numeric and converted to a Double.
@sobin_paul Better way is to check step by step weather all the expexcted outcomes are coming properly for each activity add as break point in variable ‘P’ and first manually check the calculation in immediate pannel and later check the same step in immediate pannel after the value assigned to ‘P’ is is working or not
it not just chck data type and the formula is it working properly or not