Skip to main content

agentchat.contrib.captainagent.tools.math.calculate_day_of_the_week

calculate_day_of_the_week

def calculate_day_of_the_week(total_days: int, starting_day: str)

Calculates the day of the week after a given number of days starting from a specified day.

Arguments:

  • total_days - The number of days to calculate.
  • starting_day - The starting day of the week, should be one of 'Monday', 'Tuesday', 'Wednesday', etc.

Returns:

  • str - The day of the week after the specified number of days.