Calculating the amount needed for a goal