Calculating Amount to Deposit