Flow Work Formula In Thermodynamics