I solved this by writing the following methods in the source code of the XOM object:
private BigDecimal amount;
public BigDecimal getAmount() {
return amount;
}
public BigDecimal getCeilBasedCalc(int z, int x, int y, BigDecimal n) {
return ( new BigDecimal((z-x) / y ).multiply(n) ).setScale(0, RoundingMode.CEILING);
}
public void calculateBasedOnCeil(int z, int x, int y, BigDecimal n) {
this.amount = ( new BigDecimal((z-x) / y ).multiply(n) ).setScale(0, RoundingMode.CEILING);
}
And then verbalized the above in the BOM.