get_expected_time