Rounds input up to the next nth, if necessary.
input
n
int nextMultipleOfN(int input, int n) => (input % n != 0) ? (input ~/ n + 1) * n : input;