# `RepRampPlanner`
[🔗](https://github.com/jaizendra-netizen/rep-ramp-planner/blob/main/lib/rep_ramp_planner.ex#L1)

Ramp plan for a new sales rep (see https://www.onegtmlab.dev/glossary/business-development-representative).

A ramp is a list of percentages of full quota, one per month of tenure. After the last entry the rep
is fully ramped at 100%, or at the last percentage if you pass `:after_ramp`. Month 1 is the rep's first month.

# `row`

```elixir
@type row() :: %{
  month: pos_integer(),
  ramp_pct: number(),
  expected: float(),
  cumulative: float(),
  lost: float()
}
```

# `format`

Format a plan as a text table.

# `parse_ramp`

```elixir
@spec parse_ramp(String.t()) :: {:ok, [number()]} | {:error, String.t()}
```

Parse "0,25,50,75,100" into a list of percentages.

# `plan`

```elixir
@spec plan(number(), [number()], pos_integer(), keyword()) :: [row()]
```

Plan `months` months for one rep with `quota` per month at full ramp.
Returns one row per month: the ramp percentage, the quota expected that month, the running total
and the quota lost against a fully ramped rep (`lost`).

# `total_lost`

Total quota lost to ramp over the plan.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
