The whole function is full of 24 instead of HOURSPERDAY. It makes the code more compact and clear, particularly when the 24 is inside brackets.