duration to config