fix scheduled episode calculation