Fix investment amount value

Use default currency format function and remove
duplicated code