correctly format amount