Write SQL query to solve given problem: What is the total profit all transactions with product ID 827?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT SUM((T1.ListPrice - T1.StandardCost) * T2.Quantity) FROM Product AS T1 INNER JOIN TransactionHistory AS T2 ON T1.ProductID = T2.ProductID WHERE T1.ProductID = 827