Try using the $duration identifier.

Help details: /help $duration

e.g: //echo -a $duration(300)