> For the complete documentation index, see [llms.txt](https://eflow.gitbook.io/ffc-readme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://eflow.gitbook.io/ffc-readme/functional-flow-calculator/metrics/wet-season/wet-season-duration.md).

# Duration

## Definition

The wet season baseflow duration is defined as the number of days from the start of the wet season until the start of the next spring recession. This metric is in units of cfs.

## Steps

1. The timing of the start of the wet-season period and the start of the spring recession must first be calculated, and then passed into the calculation for the wet season duration.

   ```python
   def calc_fall_winter_baseflow(flow_matrix, fall_wet_timings, spring_timings):
   ```
2. Identify the range of flow data corresponding to the start of the dry season baseflow period until the start of the wet season.

   ```python
   flow_data = flow_matrix[int(fall_wet_timings[column_number]):int(spring_date), column_number]
   ```
3. Calculate the dry season baseflow duration as the number of days in the range from the start of the dry season baseflow period until the start of the wet season, identified in step 3.

   ```python
   wet_bfl_durs.append(len(flow_data))
   ```
