Skip to content

Commit

Permalink
REDUCE price
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey committed Mar 19, 2024
1 parent b56ca00 commit 5aa536a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs-src/src/components/price-calculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ export function calculatePrice(input: PriceCalculationInput) {
* Discount if more then one package
*/
if (input.packages.length === 2) {
totalPrice = totalPrice * 0.80;
totalPrice = totalPrice * 0.90;
}
if (input.packages.length > 2) {
totalPrice = totalPrice * 0.70;
totalPrice = totalPrice * 0.80;
}

/**
* Increase price for bigger companies
* @link https://www.geogebra.org/graphing
*/
if (input.companySize > 1) {
let companySizeIncrease = 1 + ((Math.pow((input.companySize * 1) - 1, 0.85) / 100) * 4.5);
let companySizeIncrease = 1 + ((Math.pow((input.companySize * 1) - 1, 0.45) / 100) * 4.5);

const companySizeIncreaseMax = 6;
if (companySizeIncrease > companySizeIncreaseMax) {
Expand Down

0 comments on commit 5aa536a

Please sign in to comment.