refined taxBracket and implemented calcTax