analytics/lib/plausible_web/views/billing_view.ex
2019-09-02 12:29:19 +01:00

17 lines
288 B
Elixir

defmodule PlausibleWeb.BillingView do
use PlausibleWeb, :view
def reccommended_plan(usage) do
cond do
usage < 9000 ->
"10k / mo"
usage < 90_000 ->
"100k / mo"
usage < 900_000 ->
"1m / mo"
true ->
"custom"
end
end
end