Create calculated column to add dynamic values based on modified date

I have 2 columns in my SharePoint online list; total efforts and progressive efforts. Total efforts is a calculated column that captures values from progressive efforts column where the technical team enters the efforts for processing a request on a particular day. If a request is processed beyond a day, value entered in the progressive efforts column must be added to total efforts column based on the modified date, previously added value must not be replaced if modified date is same as handling completed date. How do i create a calculated column for adding dynamic values entered in progressive efforts column?

Regards, Thushara