# pipeline_stage_duration v1.0.0 - Table of Contents > Elixir library and Mix task that works out how many days deals spend in each pipeline stage (average, median, longest) from a stage-history CSV. ## Pages - [pipeline_stage_duration](readme.md) ## Modules - [PipelineStageDuration](PipelineStageDuration.md): Days spent in each pipeline stage, from a stage-history CSV with the columns `deal,stage,entered,exited` (dates as YYYY-MM-DD; leave `exited` empty for a deal still in the stage). Open rows are measured up to the `as_of` date you pass. ## Mix Tasks - [mix pipeline.stage_duration](Mix.Tasks.Pipeline.StageDuration.md): Usage: `mix pipeline.stage_duration history.csv [--as-of 2026-11-28]`