Hi, i needed some help with a formula for Duration subtraction. More specifically, I need to find how many days have passed from an older date to today, but i dont want it in 24h durations, For example, im using this formula
NUMBER(FORMAT_DATETIME_LOCAL(pageVars.now, “D”))-NUMBER(FORMAT_DATETIME_LOCAL(data.Lender_data1.Last_payment, “D”))
and it works,
But the downside, is that if i want to subtract these two dates 1/4 30/3 it will give wrong result.
On the other hand, if i use the formula
SUBTRACT_DURATION(date, duration,“days”)
it wont work correctly.
from what i understand, i need to use this fomulla
SUBTRACT_DURATION(date, duration,“days”)
but set the time of the older date to 00,
This way, is definitely better, but still, it doesn’t do what i wanted.
for example, if the one day, is 12/2 13:00 , i need it to count(add one), when the day becomes 13/2 00:00 meaning that i dont want the time to take part in deciding whether or not a day has passed.