changed delta_t to seconds for comparison