| | |
| | | taxMoney = money.divide(new BigDecimal(0.84), 2, BigDecimal.ROUND_CEILING); |
| | | } |
| | | |
| | | if (money.doubleValue() > 21000 && money.doubleValue() <= 40000) { |
| | | if (money.doubleValue() > 21000 && money.doubleValue() <= 49500) { |
| | | money = money.subtract(new BigDecimal(2000)); |
| | | taxMoney = money.divide(new BigDecimal(0.76), 2, BigDecimal.ROUND_CEILING); |
| | | } |
| | | |
| | | if (money.doubleValue() > 40000) { |
| | | if (money.doubleValue() > 49500) { |
| | | money = money.subtract(new BigDecimal(7000)); |
| | | taxMoney = money.divide(new BigDecimal(0.68), 2, BigDecimal.ROUND_CEILING); |
| | | } |
| | |
| | | |
| | | |
| | | public static void main(String[] args) { |
| | | String taxation = getTaxation(BigDecimal.valueOf(80589.723)); |
| | | String taxationBefore = getTaxationBefore(BigDecimal.valueOf(900.531)); |
| | | String taxation = getTaxation(BigDecimal.valueOf(43000)); |
| | | String taxationBefore = getTaxationBefore(BigDecimal.valueOf(205892.36)); |
| | | |
| | | |
| | | System.out.println(taxation + " " + taxationBefore); |
| | | System.out.println("taxation:" + taxation + "============taxationBefore: " + taxationBefore); |
| | | } |
| | | |
| | | } |