More efficient time calculations