roundUp static method

int roundUp(
  1. int toRound
)

Implementation

static int roundUp(int toRound) {
  try {
    if (toRound % 5 == 0) return toRound;
    return (5 - toRound % 5) + toRound;
  } catch (e) {
    return 15;
  }
}