monthGroupNumber method

int monthGroupNumber(
  1. int group
)

Returns the month group number.

Implementation

int monthGroupNumber(int group) => ((month - 1) ~/ group) + 1;