calculate_profit_loss_total.