\r\n
Fair Pricing
\r\n
\r\n Prices are based on the number of users, not the number of features, so\r\n whether a team of 2 or 100 you get the same great product:\r\n
\r\n
\r\n Unlimited T Cards, Unlimited Card Designs, 5 Custom Boards, 1gb\r\n Attachment Storage and much more.\r\n
\r\n
\r\n );\r\n};\r\n\r\nconst Pricing2 = ({ additional, showAdvanced, text }) => {\r\n const [cost, setCost] = useState(18);\r\n const [userVal, setUserVal] = useState(2);\r\n\r\n function onUserChange(e) {\r\n let unitCost = [10.0, 8.0, 7.0, 6.0, 5.0];\r\n let users = e.target.value ? parseInt(e.target.value, 10) : \"\";\r\n setUserVal(users);\r\n let total = 0;\r\n\r\n for (let i = 1; i < users + 1; i++) {\r\n if (i === 1) {\r\n total += unitCost[0];\r\n continue;\r\n }\r\n\r\n if (i >= 2 && i <= 10) {\r\n total += unitCost[1];\r\n continue;\r\n }\r\n\r\n if (i >= 11 && i <= 15) {\r\n total += unitCost[2];\r\n continue;\r\n }\r\n\r\n if (i >= 16 && i <= 20) {\r\n total += unitCost[3];\r\n continue;\r\n }\r\n\r\n if (i >= 21) {\r\n total += unitCost[4];\r\n continue;\r\n }\r\n }\r\n\r\n setCost(total);\r\n }\r\n\r\n return (\r\n