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