Move `getWeekDayIndex` so it can be modified without modifying the parent function`