Question: how to calculate date difference 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.