JavaScript helper snippet to calculate total hours on JIRA filters