First refactor - extract switch statement into amountFor method