Deulge Script , what am i missing?

Deulge Script , what am i missing?

Hi Guys, i seriously dont know what i am missing and just need some help here

i have attached the smaller section of the code, but the link is a video i did on it. and shows the full extent

It seems that everything works and should return and update a field. Bu the fields remain blank?

i dont know what i dont know and have tried to trouble shoot this for the last day or so.

please help if you can ?

https://www.loom.com/share/c1a4bc7033404ea5a0fe6182fc56866d?sid=3ad119ff-d373-403a-9e3e-b4400df47c41

ID = zoho.crm.getRecordById("Referral_Trial_s",PID);

Total_Cost = n + b + c + f + g + d * e; //these values have been preset in the excluded code

Total_Income = k h + j m + i; //these values have been preset in the excluded code

Total_Profit = Total_Income - Total_Cost;

CashonCash = Total_Cost / Total_Profit * 100;

if(ID.get("Cash_On_Cash1").isNull())

{

m2 = Map();

m2.put(CashonCash,"Cash_On_Cash1");

res = zoho.crm.updateRecord("Referral_Trial_s",PID,m2);

info res;

}