Calculation of Compound Amount and Interest