import reduce from 'lodash/reduce'

import type { Events } from 'requests'

export const fullEpisodesDuration = (filters: Events) => reduce(
  filters,
  (acc, filter) => acc + (Number(filter.e) - Number(filter.s)),
  0,
)
