Template:Episode Counter

{{#ifexpr: {{#var: weeks}}<0 | #default = 0 | 0001 = 1 | 0011 = 2  | 0111 = 3  | 1111 = 4  }}+{{{count offset}}} }}
 * 0
 * {{#expr: trunc({{#var: weeks}})*4+{{#switch: {{#expr: {{#var:tow}}>=504000}}{{#expr: {{#var:tow}}>=415800}}{{#expr: {{#var:tow}}>=243000}}{{#expr: {{#var:tow}}>=158400}}