simplified time computation