duration to int