title: Output calculations to template
body: <p>I want to perform row level math on a model and display the results in the template. The database has a row for each company per day.</p>
  
  <pre><code>class MyModel(models.Model):
      company = model.CharField(...
      daily_target = model.PositiveSmallIntger(...
      actual =  model.PositiveSmallIntger(...
      date = model.DateField(...
  </code></pre>
  
  <p>In the template I'd want to display the result of 100 * actual / daily_target for the logged-in company. I have no problem doing this in the python interpreter but am confused about how to do this with views &amp; templates.</p>