IG formula for saving and spending