InmailCreditPlanner (inmail_credit_planner v1.0.0)

Copy Markdown View Source

Plan InMail credits from numbers you supply (no LinkedIn limits are built in).

Inputs: reply_rate (0..1, your measured rate), replies wanted, monthly_credits you have, and optionally credit_price for credits you would need to buy on top of the allowance.

Summary

Types

plan()

@type plan() :: %{
  reply_rate: float(),
  replies_wanted: pos_integer(),
  credits_needed: pos_integer(),
  monthly_credits: pos_integer(),
  months: pos_integer(),
  extra_credits_first_month: non_neg_integer(),
  extra_cost_first_month: float() | nil
}

Functions

plan(reply_rate, replies, monthly_credits, credit_price \\ nil)

@spec plan(float(), pos_integer(), pos_integer(), float() | nil) ::
  {:ok, plan()} | {:error, String.t()}

render(p)

@spec render(plan()) :: String.t()

Printable summary.