analytics/lib/plausible_web/views/billing_view.ex

17 lines
288 B
Elixir
Raw Normal View History

2019-09-02 14:29:19 +03:00
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