modify function calc to calcMoneyByPromotion