I have a flow that triggers when a new item is created in a SharePoint list which contains an approval in which everyone must respond.

In SharePoint I have created a column to have a timeline of the approvals where to record this data:

When the approvers have answered if they all have approved, the status column of the SharePoint list is updated to Approved, if someone has rejected the Status column is updated to Rejected.
In both cases, in the Timeline column, the following are recorded:
- The name of the approver
- Date I answer the approval
- Approval Comments
4.Time elapsed (using the date and time function dateDifference) but I get an error when executing the flow



Can somebody help me? I have been watching the video of Reza Dorrani:SharePoint Approval Timeline | Power Automate Approvals + Column Formatting + Approval History.
But there is no way to get the function to work, I'm stuck
Thanks