Calculate total simulation time