Added duration varible to notification template. Fixes travis-ci/travis-ci#1427