firstMonthOfGroup method

int firstMonthOfGroup(
  1. int group
)

Returns the first month of the group.

Implementation

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