Calculation of principle and payment amounts