profit_loss calcs