fixing bugs in budget calculator