int minimalMultiple(int divisor, int lowerBound) { if (lowerBound % divisor == 0) return lowerBound; return (int)(Math.floor(lowerBound / divisor ) + 1) * divisor; }