refactoring of Planned expenses