How to calculate the hydraulic system