Create Handlebars helper for duration