Report question

Question: Looking for ideas how to refactor my algorithm