Use numerical value of duration
Merge pull request #2 from boardhead/patch-1

Use numerical value of duration