class SpendProfileTableCalculator {

    public BigDecimal getAllocationValue(BigDecimal value, BigDecimal percentage){
        BigDecimal percent = percentage.divide(BigDecimal.valueOf(100), 2, BigDecimal.ROUND_HALF_UP);
        return value.multiply(percent).setScale(0, BigDecimal.ROUND_DOWN);
    }

}