initial version for the episode controller
calculate segment length in seconds instead of minutes