I have a work week that operates from Monday-Friday (24 hours).
I am trying to develop a formula that would show the total hours remaining from the current time until the week closes each Friday at 11:59PM. This would have to reset each week.
So far I have
FORMULA:
DATETIME_DIFF(NOW(), {FORMULA NEEDED}, “hours”)
This is a part of a much bigger formula. Thanks for your help!
If the date/time fields are local time instead of GMT, the formula will need to take time zones into account.
It looks like your formula calculates the difference based on a closing time of Saturday, 12:00am GMT, versus Friday at 11:59pm. It probably doesn’t make much of a difference in the calculations, but I thought I’d point it out for anyone trying to understand your formula.
Yeah I should have mentioned that. I assumed by “11:59pm” they meant “11:59:59pm”, inclusive, so that the formula retrieves the number of whole hours between “now” and the actual end of Friday, not one whole minute before the end of Friday.
Thanks for your ideas! I tried adding in the formula and at this very moment, it is 9:10am EST and the actual time till Friday 11:59PM EST is 38 hours, 49 minutes, 59 seconds
The formula is producing “34” hours. I’m assuming this is what you meant by “If the date/time fields are local time instead of GMT, the formula will need to take time zones into account.”
Any idea on how to make it be correct for the EST (New York) timezone?