Remove panic for invalid time duration