# `InmailCreditPlanner`
[🔗](https://github.com/jaizendra-netizen/inmail_credit_planner/blob/main/lib/inmail_credit_planner.ex#L1)

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.

# `plan`

```elixir
@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
}
```

# `plan`

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

# `render`

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

Printable summary.

---

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