Is the views module a viable options for creating reports with calculated totals?
Another Module you can consider is the views summarize


  Enables an extra display style which displays summaries of a column on
  the last row.



You can also use the views calc mentioned by @Felix together with the views aggregator module