Calculation of Remaining Amount