refactor formatAmount