def get_weekday_index_from_name(day_name: str) -> int:
    """Get the day index from week day name"""
    return {
        "monday": 0,
        "tuesday": 1,
        "wednesday": 2,
        "thursday": 3,
        "friday": 4,
        "saturday": 5,
        "sunday": 6,
    }[day_name.lower()]