calculatePlaceholderFromStart method

int calculatePlaceholderFromStart(
  1. YearMonth ym
)

Calculating the placeholder from first day of YearMonth

Implementation

int calculatePlaceholderFromStart(YearMonth ym) =>
    ((7 - this.weekend) + (ym.firstDay.weekday % 7)) % 7;