RepRampPlanner (rep_ramp_planner v1.0.0)

Copy Markdown View Source

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.

Summary

Functions

Format a plan as a text table.

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

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 quota lost to ramp over the plan.

Types

row()

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

Functions

format(rows)

Format a plan as a text table.

parse_ramp(text)

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

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

plan(quota, ramp, months, opts \\ [])

@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(rows)

Total quota lost to ramp over the plan.