Example of a method that does too much

It fetches records using a static method, does maths on the results then
prints them to the console.

There are glaring bugs with this code that our customer is complaining
about and we need to safely change the code.