Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
uroszajc authored Jan 17, 2025
1 parent c8b0333 commit c233394
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ function calculatePricing() {
const vmwarePrice = vmwarePricing[vmwareProduct] * numCores * duration;

//Calculate the difference
const difference = vmwarePrice - openshiftPrice
const difference = vmwarePrice - openshiftPrice;

//calulate margin
const marginresult = (100-margin)
const marginresult = (100-margin);

//calculate Openshift margin
const openshiftmargin = openshiftPrice/marginresult
const openshiftmargin = openshiftPrice/marginresult;

//calculate VMware margin
const vmwaremargin = vmwarePrice/marginresult
const vmwaremargin = vmwarePrice/marginresult;

// Display the results
const resultDiv = document.getElementById('result');
Expand Down

0 comments on commit c233394

Please sign in to comment.