Source: https://www.isisvarese.edu.it/wp-content/uploads/2016/03/first-law-of-thermodynamics-for-an-open-system-.pdf