I would like to have a computed field that shows the number of days an order is overdue.
I have created a field called x_studio_days_overdue that is an integer.
I would like to compute this field by subtracting two other fields and I would like to show the result as a number of days.
x_studio_shipping_date - scheduled_date = x_studio_days_overdue
How would I write the code to do this in the Compute section of the x_studio_days_overdue field?
Here is the code that ultimately worked: