Why would you need to calculate it on the fly? trakt doesn't give us the absolute episode number, so we're setting it here: https://github.com/NzbDrone/NzbDrone/blob/develop/src/NzbDrone.Core/Tv/RefreshEpisodeService.cs#L147