Move time calculations to constants