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 c233394 commit 9a7a7dc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ function calculatePricing() {
const marginresult = (100-margin);

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

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

// const vmwaremargin = vmwarePrice/marginresult;
const vmwaremargin = vmwarePrice + vmwarePrice*margin;

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

0 comments on commit 9a7a7dc

Please sign in to comment.