General calculation of profit and loss needs to consider the following aspects: product specifications, buying and selling quantity, fluctuation points and handling fees.
Your specific algorithm is: product specification * buying and selling quantity * fluctuation points (USD 1)-handling fee, and that's your profit.