calculatePlaceholderFromEnd method

int calculatePlaceholderFromEnd(
  1. YearMonth ym
)

Calculating the placeholder from last day of YearMonth

Implementation

int calculatePlaceholderFromEnd(YearMonth ym) =>
    (this.weekend - ym.lastDay.weekday - 1) % 7;