title: django template forloop.counter multiple operations
body: <p>I am trying to perform multiple mathematics operations on a <code>forloop.counter</code> in my Django template. Specifically I am trying to identify every 29th instance, after the 24th; so the 24th, 53rd, 82nd, 111th, 140th instances etc....</p>
  
  <p>I have tried the following without success:</p>
  
  <pre><code>{% if forloop.counter == 24 or widthratio forloop.counter|add:"-24" 29 1 %}
  {% if forloop.counter == 24 or forloop.counter|add:"-24"|divisibleby:29 %}
  </code></pre>
  
  <p>Does anyone have any suggestions that might help me acheive my aim? Any help is much appreciated!</p>