import React, { useState } from 'react' import { MarketingDrawer, PageTitle } from '@app/components/general' import { metaSetter } from '@app/utils' import type { PageProps } from '@app/types' import { companyName } from '@app/configs' import { Header2, Header3 } from '@app/components/general/header' // calc the basic cost of the plan const calcCost = ({ websiteCount, siteWideApiCount }: any) => { let total = 0 if (websiteCount) { // todo use % by to get value if (websiteCount <= 8) { total = websiteCount * 1.75 } else if (websiteCount <= 20) { total = websiteCount * 1.7 } else if (websiteCount <= 30) { total = websiteCount * 1.65 } else if (websiteCount <= 40) { total = websiteCount * 1.6 } else if (websiteCount <= 50) { total = websiteCount * 1.5 } else if (websiteCount <= 60) { total = websiteCount * 1.4 } else if (websiteCount <= 70) { total = websiteCount * 1.3 } else if (websiteCount <= 80) { total = websiteCount * 1.2 } else if (websiteCount <= 90) { total = websiteCount * 1.1 } else if (websiteCount >= 100) { total = websiteCount * 1 // flat } } if (siteWideApiCount) { const apiBaseToDollar = (websiteCount || 1) * Number(siteWideApiCount / 300) // 0.0033 cents pet avg total = total + apiBaseToDollar } return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD', }).format(total ? total - 0.01 : 0) } function CreateCalculator({ name }: PageProps) { const [websiteCount, setWebsiteCount] = useState(8) const [siteWideApiCount, setSiteWideApiCount] = useState(75) const mountlyCost = calcCost({ websiteCount, siteWideApiCount }) const onSetWebsiteCount = (event: React.ChangeEvent) => { setWebsiteCount(event.target.value) } const onSetSiteWideApiCount = (event: React.ChangeEvent) => { setSiteWideApiCount(event.target.value) } return (

This calculator is no longer valid as our plans transitioned out of feature limiting.

Calculate the plan cost

See estimates on enterprise plans at the basic entry of scale.

{companyName} enterprise estimate

Total monthly cost:

{mountlyCost}

Workloads that are out of this world.

The enterprise setup is ideal for users that have over 50 domains that need to stay accessible at all times.

Go beyond limits

With enterprise plans comes the abilility to get custom workflows. Build your product on top of our infrastructure to extend the possibilities of your system.

) } export default metaSetter( { CreateCalculator }, { title: `${companyName}: Calculator reflecting enterprise cost`, description: `Calculator for enterprise plans at ${companyName}. Use this to get a estimation on what your cost would look like at different levels.`, } )