APIImpl: fix arithmetic with BigDecimal in method checkDelta