Here you can find the source of addVatAmount(BigDecimal percentage, BigDecimal amount)
public static BigDecimal addVatAmount(BigDecimal percentage, BigDecimal amount)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { private static final BigDecimal HUNDRED = new BigDecimal("100"); public static BigDecimal addVatAmount(BigDecimal percentage, BigDecimal amount) {//from w ww . ja v a 2 s. co m return amount.multiply(percentage.divide(HUNDRED)); } }