Calculating Required Amount and Contributions