How to work out flexed budget