Don't mix input/output and calculation in a method. This does return a result... but it isn't a good and reusable method.