<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def watering_time(self):
 """Return watering_time from zone."""

        # zone starts with index 0
        index = self.id - 1
        auto_watering_time =\
            self._attributes['rain_delay_mode'][index]['auto_watering_time']

        manual_watering_time =\
            self._attributes['rain_delay_mode'][index]['manual_watering_time']

        if auto_watering_time > manual_watering_time:
            watering_time = auto_watering_time
        else:
            watering_time = manual_watering_time

        return watering_time