function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bhaskar ChowdaryBhaskar Chowdary 

Updating a date field based on date/time field.

My App contains CTC field  and basic field

When i entered current CTC as 3,60,000

my Basic field is comming as 15000



formula is (Current CTC/12)*50%





how i write this code i dont want to caliculate by manul please reply to this


You are not clear enough!
You have the formula in hand What do you want to do ?

If you want to calculate the Basic automatically you can create a formula field using the formula you stated. This will automate your process.


Use your formula to create the field "((Current_CTC__c/12)*0.50)"



For further deatils :


Why do u want to write a code for this. The Basic field is a formula field is it ?


Which value you want to make dynamic so that you want to write code? It is fine in Formula field I think. 


If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.