fixed linting issues in lib/finance.  TODO: automate this as part of the tests?