Added mid. consumption

Added sreden_razhod function.