I need some help with a basic question. I have two variables, 'a' and 'b'. Variable A represents the money I receive from a customer, while variable B represents the money I will pay to a carrier.
For example, if I receive $1000 from a customer and then pay $800 to a carrier, my profit would be $200 (20%).
Can someone provide me with the formula in javascript for calculating this profit?