Making calculations with time