min and max time