function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
karthikeya 2karthikeya 2 

Hours Calculations ?

Hi all,

i need a formula for calculating hours based on created date. means if the record is created 

1 hr it should display 1 
2 hrs it should display 2
3 hrs it should display 3

if 1day should display  24
if 2days should display  48

Thanks in Advance.
 
ChakereChakere
Are you looking for something as simple as: FLOOR((NOW()-CreatedDate)*24)

This doesn't check for business hours or holidays.