Question: how to calculate difference between two dates in salesforce?
Answer: To find the difference between two Date values as a number, subtract one from the other like so: date_1 — date_2 to return the difference in days.