// x = maxDamage : (maxDamage - currentDamage)
// if (x > 15) x = 14;
// if (x == 15) x = 13;
// return 15 / x
int x = stack.getMaxDamage() / (stack.getMaxDamage() - stack.getDamage());
x = x > 15 ? 14 : x == 15 ? 13 : x;
return 15 / x;