Optimisation of water quantity