**Adding balance calculation