Create profitLoss.js